TARGET = runme # name of the executable SRC = $(wildcard *.C) # # collect the source code *.cc OBJ = $(patsubst %.C,%.o,$(SRC)) # # figure out the object names *.o CC = g++ # # name of the compiler CFLAGS = -O4 # # compile options LFLAGS = # # link options $(TARGET): $(OBJ) # rule to link $(CC) -o $(TARGET) $(LFLAGS) $(OBJ) %.o:%.C # rule to compile $(CC) $(CFLAGS) -c $< # indent -br $< clean: rm *.o; rm $(TARGET); rm *.bak # use this to clean up makefile: $(SRC) # this will automatically create the dependencies makedepend $(SRC) &> /dev/null # DO NOT DELETE proba.o: stl_string_regex.h /usr/include/regex.h /usr/include/sys/types.h proba.o: /usr/include/features.h /usr/include/sys/cdefs.h proba.o: /usr/include/gnu/stubs.h /usr/include/bits/wordsize.h proba.o: /usr/include/gnu/stubs-32.h /usr/include/bits/types.h proba.o: /usr/lib/gcc/i386-redhat-linux/4.0.1/include/stddef.h proba.o: /usr/include/bits/typesizes.h /usr/include/time.h stl_string_regex.o: stl_string_regex.h /usr/include/regex.h stl_string_regex.o: /usr/include/sys/types.h /usr/include/features.h stl_string_regex.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h stl_string_regex.o: /usr/include/bits/wordsize.h /usr/include/gnu/stubs-32.h stl_string_regex.o: /usr/include/bits/types.h stl_string_regex.o: /usr/lib/gcc/i386-redhat-linux/4.0.1/include/stddef.h stl_string_regex.o: /usr/include/bits/typesizes.h /usr/include/time.h