diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -37,11 +37,14 @@ endif OBJS = sux.o io.o $(DBG_OBJ) asmmon.o assemble.o lexer.o +OBJS2 = subasm.o subeditor.o +OBJS3 = opcode-gen.o csv-parse.o CFLAGS = $(PCC_CFLAGS) $(DBG_CFLAGS) $(IO_CFLAGS) $(BENCH_CFLAGS) $(CFLAGS_EXTRA) -OBJS2 = subasm.o subeditor.o + OBJ_NAME = cisc-0.2 OBJ_NAME2 = subeditor-c +OBJ_NAME3 = opcode-gen all : clean $(OBJ_NAME) @@ -49,11 +52,12 @@ subeditor : clean $(OBJS2) $(CC) $(OBJS2) $(CFLAGS) -lcurses -ltinfo -o $(OBJ_NAME2) cisc-0.2: $(OBJS) $(CC) $(OBJS) $(CFLAGS) -lpthread -lcurses -ltinfo -o $(OBJ_NAME) - +opcode-gen : clean $(OBJS3) + $(CC) $(OBJS3) $(CFLAGS) -o $(OBJ_NAME3) %.o : %.c $(CC) -c $< -o $@ $(CFLAGS) clean : - rm -f $(OBJ_NAME) $(OBJ_NAME2) *.o + rm -f $(OBJ_NAME) $(OBJ_NAME2) $(OBJ_NAME3) *.o install : install -D -m755 $(OBJ_NAME) $(BIN_DIR)/$(OBJ_NAME) uninstall : |