You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
tiny-json/makefile

33 lines
639 B

build: example-01.exe example-02.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 -Wall -o example-01.exe example-01.o tiny-json.o
example-02.exe: example-02.o tiny-json.o
gcc -Wall -o example-02.exe example-02.o tiny-json.o
test.exe: tests.o tiny-json.o
gcc -Wall -o test.exe tests.o tiny-json.o
tiny-json.o: tiny-json.c tiny-json.h
gcc -Wall -c tiny-json.c
example-01.o: example-01.c tiny-json.h
gcc -Wall -c example-01.c
example-02.o: example-02.c tiny-json.h
gcc -Wall -c example-02.c
tests.o: tests.c tiny-json.h
gcc -Wall -c tests.c