74cf3e0711
we use an ugly bit of C preprocessor to get the values from header files, because certain constants are different on MIPS than on other architectures
14 lines
324 B
Makefile
14 lines
324 B
Makefile
|
|
default: fs.lua init.lua nl.lua svc.lua net/constants.lua
|
|
|
|
test:
|
|
ln -s . anoia
|
|
fennel test.fnl
|
|
fennel test-svc.fnl
|
|
|
|
net/constants.lua: net/constants.c
|
|
$(CC) -imacros sys/socket.h -imacros linux/netlink.h -E -P - < net/constants.c | sed 's/ *$$//g' | cat -s > net/constants.lua
|
|
|
|
|
|
%.lua: %.fnl
|
|
fennel --compile $< > $@
|