Makefile revision 14137:31b40f827718
1 2CPP := g++ 3 4TEST_OBJS := chdir-print.o 5TEST_PROGS := $(TEST_OBJS:.o=) 6 7# ==== Rules ================================================================== 8 9.PHONY: default clean 10 11default: $(TEST_PROGS) 12 13clean: 14 $(RM) $(TEST_OBJS) $(TEST_PROGS) 15 16$(TEST_PROGS): $(TEST_OBJS) 17 $(CPP) -static -o $@ $@.o 18 19%.o: %.c Makefile 20 $(CPP) -c -o $@ $*.c -msse3 21