This commit is contained in:
Geoffrey Frogeye 2017-03-29 11:43:05 +02:00
parent 45f6092d0d
commit 04bb2bec3a
12 changed files with 313 additions and 0 deletions

27
TP8/Makefile Normal file
View file

@ -0,0 +1,27 @@
all: main pdfs dots
main: main.c libtrees.a
gcc $^ -o $@
part2: part2.c libtrees.a
gcc $^ -o $@
%.o: %.c
gcc -c $^ -o $@
lib%.a: %.o
ar rcs $@ $^
pdfs: $(patsubst %.txt,%.pdf,$(shell ls samples/*.txt))
dots: $(patsubst %.txt,%.dot,$(shell ls samples/*.txt))
samples/%.pdf: samples/%.dot
dot -Tpdf $< -o $@
samples/%.dot: samples/%.txt part2
./part2 $<
.PHONY: clean
clean:
rm -r lib*.a *.o samples/*.dot samples/*.pdf