# needs GNU make, gcc and bison
# (tested under Linux, djggp2, mingw32 and cygwin)

CC = gcc -g
CC = gcc -s
CFLAGS = -O2 -Wall

djasm: djasm.o

djasm.o: djasm.c

djasm.c: djasm.y
	bison -o $@ $<

clean:
	-rm -f djasm djasm.exe djasm.o djasm.obj djasm.c
