aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-09 15:28:04 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-09 15:28:04 +0100
commit223dd8ae2796a226f612bae60f0d56cdd71efa89 (patch)
tree6a13c359c6abe3540231539b9e2d6b27fcd9663a
parentdfffa2b072cf29e397a1a7fb10dcec329f63738e (diff)
Added new make targets
-rw-r--r--FICS/build.mk18
-rw-r--r--vars.mk2
2 files changed, 17 insertions, 3 deletions
diff --git a/FICS/build.mk b/FICS/build.mk
index 2339655..1db40a6 100644
--- a/FICS/build.mk
+++ b/FICS/build.mk
@@ -31,12 +31,26 @@ OBJS = $(SRC_DIR)adminproc.o\
$(SRC_DIR)utils.o\
$(SRC_DIR)variable.o\
$(SRC_DIR)vers.o
+
+AP_OBJS = $(SRC_DIR)fics_addplayer.o\
+ $(OBJS)
+AP_LDFLAGS =
+AP_LDLIBS = -lcrypt
+
+MR_OBJS = $(SRC_DIR)makerank.o
+MR_LDFLAGS =
+MR_LDLIBS =
# dfree
-# fics_addplayer
-# makerank
# memmove
fics: $(OBJS)
$(E) " LINK " $@
$(Q) $(CXX) $(CXXFLAGS) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
+fics_addplayer: $(AP_OBJS)
+ strip --strip-symbol=main $(SRC_DIR)ficsmain.o
+ $(E) " LINK " $@
+ $(Q) $(CXX) $(CXXFLAGS) -o $@ $(AP_OBJS) $(AP_LDFLAGS) $(AP_LDLIBS)
+makerank: $(MR_OBJS)
+ $(E) " LINK " $@
+ $(Q) $(CXX) $(CXXFLAGS) -o $@ $(MR_OBJS) $(MR_LDFLAGS) $(MR_LDLIBS)
# EOF
diff --git a/vars.mk b/vars.mk
index 109d178..a6535d6 100644
--- a/vars.mk
+++ b/vars.mk
@@ -2,4 +2,4 @@
ROOT := ./
TARGETS_DIR := $(ROOT)maketargets/
-TGTS = fics
+TGTS = fics fics_addplayer makerank