Newer
Older
emul / Makefile
OBJS=emul.o emul_inst_exec.o emul_inst_decipher.o emul_reg.o emul_mem.o emul_label.o emul_opt.o emul_repl.o emul_io_std.o 
PROGRAM=emul
CC=gcc
CCOPT=-lncurses -lpanel

ifeq ($(OS), Windows_NT)
  # Cygwin
  #CCOPT= -I/usr/include/ncurses
endif

.SUFFIXES: .c .o

$(PROGRAM): $(OBJS)
	$(CC) -o $(PROGRAM) $^ $(CCOPT)

.c.o:
	$(CC) -c $<

.PHONY: clean
clean:
	rm -f $(OBJS) $(PROGRAM)