PracticeDev/study_makefile/makefile15/Makefile

14 lines
158 B
Makefile

objects = foo.o bar.o all.o
all: $(objects)
$(objects): %.o: %.c
all.c:
echo "int mian() { return 0; }" > all.c
%.c:
touch $@
clean:
rm -f *.c *.o all