summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2020-03-24 18:46:44 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2020-03-24 18:46:44 -0400
commit6bad8fa605f5011cadab428156c18b4067922185 (patch)
treef0924877d62849d84078ed8eb3096daec1e5c211 /Makefile
parent0a2f19ea6664f661aba72803a214687e92e181d4 (diff)
Added support in SuBEditor for true backspace, and
inserting characters without replacing the old ones.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 12 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 65048a6..9b7ebb0 100644
--- a/Makefile
+++ b/Makefile
@@ -9,19 +9,26 @@ endif
CFLAGS = $(PCC_CFLAGS) $(CFLAGS_EXTRA)
OBJS = asmmon.o sux.o
+OBJS2 = subasm.o subeditor.o
OBJ_NAME = cisc-0.2
-OBJ_NAME2 = subeditor
-all : clean $(OBJ_NAME)
-subeditor :
- $(CC) programs/c-ports/$(OBJ_NAME2).c $(CFLAGS) -lcurses -ltinfo -o $(OBJ_NAME2)-c
+OBJ_NAME2 = subeditor-c
+all : clean clean_subeditor $(OBJ_NAME)
+subeditor : clean_subeditor $(OBJS2)
+ $(CC) $(OBJS2) $(CFLAGS) -lcurses -ltinfo -o $(OBJ_NAME2)
cisc-0.2: $(OBJS)
$(CC) $(OBJS) $(CFLAGS) -lpthread -lcurses -ltinfo -o $(OBJ_NAME)
sux.o :
$(CC) sux.c -c $(CFLAGS) -o sux.o
asmmon.o :
$(CC) asmmon.c -c $(CFLAGS) -o asmmon.o
+subasm.o :
+ $(CC) programs/c-ports/subasm.c -c $(CFLAGS) -o subasm.o
+subeditor.o :
+ $(CC) programs/c-ports/subeditor.c -c $(CFLAGS) -o subeditor.o
clean :
- rm -f $(OBJ_NAME) $(OBJ_NAME2)-c $(OBJS)
+ rm -f $(OBJ_NAME) $(OBJ_NAME2) $(OBJS) $(OBJS2)
+clean_subeditor :
+ rm -f $(OBJ_NAME2) $(OBJS2)
install :
install -D -m755 $(OBJ_NAME) $(BIN_DIR)/$(OBJ_NAME)
uninstall :