aboutsummaryrefslogtreecommitdiff
path: root/lib/source.mk
blob: 4bf99a7227e52d6ccf281b44e9363f22105d0f0e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# some glue to keep everything together
lib/prune: lib/empty.bin
	$(COMPILE) lib/prune.c -o lib/prune

lib/empty.c: ops/common.h
lib/empty.bin: lib/empty.o
	$(OBJCOPY) -j .text -Obinary lib/empty.o lib/empty.bin

lib/empty.o: lib/empty.c
	$(OP_COMPILE) -c lib/empty.c -o lib/empty.o

src/copyjit.c: lib/decls.h
lib/decls.h: $(OPS)
	cd lib && ./gen_lib "$(OPS)"