1# $Id: Makefile 2085 2011-10-27 05:06:47Z jkoshy $ 2 3TET_ROOT?= /usr/tet 4LIBDIR= $(TET_ROOT)/lib/tet3 5INCDIR= $(TET_ROOT)/inc/tet3 6CSTD= -std=iso9899:1999 7CFLAGS= -I$(INCDIR) 8TC= cpp_demangle-tc 9 10vector_str.o: ../../../vector_str.c 11 $(CC) $(CSTD) -o vector_str.o -c ../../../vector_str.c 12 13cpp_demangle.o: ../../../cpp_demangle.c vector_str.o 14 $(CC) $(CSTD) -o cpp_demangle.o -c ../../../cpp_demangle.c 15 16$(TC): $(TC).c cpp_demangle.o $(INCDIR)/tet_api.h 17 $(CC) $(CFLAGS) $(CSTD) -o $(TC) $(TC).c vector_str.o \ 18 cpp_demangle.o $(LIBDIR)/tcm.o \ 19 $(LIBDIR)/libapi.a 20 21clean: 22 rm -f *.o $(TC) 23 24lint: 25 lint $(CFLAGS) $(TC) -ltcm 26