2016-10-12 21:08:38 +00:00
|
|
|
|
|
|
|
|
2016-10-18 23:16:30 +00:00
|
|
|
build: example-01.exe example-02.exe
|
2016-10-12 21:08:38 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf *.o
|
|
|
|
rm -rf *.exe
|
|
|
|
|
|
|
|
all: clean build
|
|
|
|
|
2016-10-18 23:16:30 +00:00
|
|
|
example-01.exe: example-01.o tiny-json.o
|
|
|
|
gcc -o example-01.exe example-01.o tiny-json.o
|
2016-10-12 21:08:38 +00:00
|
|
|
|
2016-10-18 23:16:30 +00:00
|
|
|
example-02.exe: example-02.o tiny-json.o
|
|
|
|
gcc -o example-02.exe example-02.o tiny-json.o
|
2016-10-12 21:08:38 +00:00
|
|
|
|
|
|
|
tiny-json.o: tiny-json.c tiny-json.h
|
|
|
|
gcc -c tiny-json.c
|
|
|
|
|
2016-10-18 23:16:30 +00:00
|
|
|
example-01.o: example-01.c tiny-json.h
|
|
|
|
gcc -c example-01.c
|
2016-10-12 21:08:38 +00:00
|
|
|
|
2016-10-18 23:16:30 +00:00
|
|
|
example-02.o: example-02.c tiny-json.h
|
|
|
|
gcc -c example-02.c
|