summaryrefslogtreecommitdiff
path: root/userland/test/Makefile
blob: 72879393d6bc9da760c1af91dba7d36b2270db56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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