# Makefile for STringLists .SUFFIXES: .o .C .C.o: $(CC) $(CFLAGS) -c $< ***** UNCOMMENT THE CORRECT COMPILER #CC = /usr/bin/CC CC = g++ CFLAGS = -g -I/usr/include/CC LFLAGS = -lc -lm SRC = STring.C STringList.C STringListTest.C OBJ = STring.o STringList.o STringListTest.o TARGET = listTest all: depend $(TARGET) # append all other executables depend: # creates all dependencies for you makedepend -- $(CFLAGS) -- ${SRC} $(TARGET): ${OBJ} ${CC} ${CFLAGS} ${OBJ} -o $(TARGET) ${LFLAGS} clean: /bin/rm -f *.o core