tiny-json/makefile
Vladislav Grishenko b3804dcf50 Implement custom pool API
Now it's poosible to use any custom pool allocation, i.e
preallocated pools or dymamic allocation on fly.
2018-11-10 23:37:33 +05:00

40 lines
898 B
Makefile

build: example-01.exe example-02.exe example-03.exe
clean:
rm -rf *.o
rm -rf *.exe
all: clean build
test: test.exe
./test.exe
example-01.exe: example-01.o tiny-json.o
gcc -std=c99 -Wall -o example-01.exe example-01.o tiny-json.o
example-02.exe: example-02.o tiny-json.o
gcc -std=c99 -Wall -o example-02.exe example-02.o tiny-json.o
example-03.exe: example-03.o tiny-json.o
gcc -std=c99 -Wall -o example-03.exe example-03.o tiny-json.o
test.exe: tests.o tiny-json.o
gcc -std=c99 -Wall -o test.exe tests.o tiny-json.o
tiny-json.o: tiny-json.c tiny-json.h
gcc -std=c99 -Wall -c tiny-json.c
example-01.o: example-01.c tiny-json.h
gcc -std=c99 -Wall -c example-01.c
example-02.o: example-02.c tiny-json.h
gcc -std=c99 -Wall -c example-02.c
example-03.o: example-03.c tiny-json.h
gcc -std=c99 -Wall -c example-03.c
tests.o: tests.c tiny-json.h
gcc -std=c99 -Wall -c tests.c