#
# makefile for modmake (stolen from jittr library)
#
# 8.1.97, jw.
#


all: modmake


xxd: xxd.c
	$(CC) $(CFLAGS) -o xxd xxd.c

jmodtemplate.h: xxd jmodtemplate.c
	./xxd -include jmodtemplate.c > jmodtemplate.h

modmake: modmake.c jmodtemplate.h Makefile
	$(CC) $(CFLAGS) -DSTANDALONE -o modmake modmake.c

clean celan:
	rm -f modmake xxd jmodtemplate.h *.o *.orig


###################### dependencies, generated by make depend using gcc -MM *.c
jmodtemplate.o: jmodtemplate.c
modmake.o: modmake.c modmake.h version.h jmodtemplate.h
xxd.o: xxd.c
