diff options
Diffstat (limited to 'userland/test/Makefile')
-rw-r--r-- | userland/test/Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/userland/test/Makefile b/userland/test/Makefile new file mode 100644 index 0000000..7287939 --- /dev/null +++ b/userland/test/Makefile @@ -0,0 +1,16 @@ +#CC="/home/anton/opt/cross/bin/i686-elf-gcc" +CC="/home/anton/prj/osdev/sysroot/bin/i686-sb-gcc" +CFLAGS = -O2 -Wall -Wextra -pedantic -Wimplicit-fallthrough -static +LIB=-L../json -L../json/hashmap -ljson -lhashmap +INC=-I../json/ +BINS=test +all: $(BINS) + +test.o: test.c + $(CC) $(CFLAGS) $(INC) $(LIB) -o $@ -c $< + +test: test.o + $(CC) $(CFLAGS) -o $@ $^ $(LIB) + +clean: + rm test.o test |