CC   = g++
CFLAGS = -O -g -fno-external-templates
OBJS = asm.o flags.o


#asm: asm.cc asm.hh
#	$(CC) $(CFLAGS) -o asm asm.cc

asm: $(OBJS)
	$(CC) -o asm $(OBJS)

asm.o: asm.cc asm.hh
	 $(CC) $(CFLAGS) -c -o asm.o asm.cc

flags.o: flags.cc flags.hh
	 $(CC) $(CFLAGS) -c -o flags.o flags.cc

reverse:
	gcc -o reverse reverse.c


clean:
	rm -f *.o asm reverse *~ *.output core
