uronode/Makefile.in

111 lines
3.7 KiB
Makefile
Raw Permalink Normal View History

2016-04-01 16:06:32 +01:00
all: nodeusers uronode axdigi calibrate @FLEXNET@
2015-09-03 20:01:45 +01:00
CC = gcc
LD = gcc
2017-01-21 14:34:12 +00:00
# CFLAGS = -O2 -g -s -Wno-unused-result -Wstrict-prototypes
CFLAGS = -DUNIX -g3 -DDEBUG
2015-09-03 20:01:45 +01:00
LDFLAGS =
LIBS = -lax25 -lax25io
include Makefile.include
COMMON_SRC = user.c util.c
2017-01-21 14:34:12 +00:00
NODE_SRC = node.c cmdparse.c config.c command.c jheard.c axcalluser.c \
2015-09-03 20:01:45 +01:00
gateway.c extcmd.c procinfo.c router.c system.c sysinfo.c ipc.c
NODEUSERS_SRC = nodeusers.c
FLEXD_SRC = flexd.c procinfo.c
DIGI_SRC = axdigi.c
2016-04-01 16:06:32 +01:00
CALIBRATE_SRC = calibrate.c
2015-09-03 20:01:45 +01:00
COMMON_OBJS = $(COMMON_SRC:.c=.o)
NODE_OBJS = $(NODE_SRC:.c=.o)
NODEUSERS_OBJS = $(NODEUSERS_SRC:.c=.o)
FLEXD_OBJS = $(FLEXD_SRC:.c=.o)
DIGI_OBJS = $(DIGI_SRC:.c=.o)
2016-04-01 16:06:32 +01:00
CALIBRATE_OBJS = $(CALIBRATE_SRC:.c=.o)
2015-09-03 20:01:45 +01:00
.c.o:
$(CC) $(CFLAGS) -c $<
install: installbin installman installhelp installconf
2016-04-01 16:06:32 +01:00
install -b -m 755 -D -d $(VAR_DIR)
install -b -m 755 -D -d $(VAR_DIR)/node
install -b -m 644 -p etc/loggedin $(VAR_DIR)/node
install -b -m 644 -p etc/lastlog $(VAR_DIR)/node
install -b -m 755 -D -d $(VAR_DIR)/flex
install -b -m 644 -p etc/gateways $(VAR_DIR)/flex
2015-09-03 20:01:45 +01:00
installbin: all
install -m 755 -s -p uronode $(SBIN_DIR)
install -m 755 -s -p nodeusers $(SBIN_DIR)
install -m 755 -s -p axdigi $(SBIN_DIR)
2016-04-01 16:06:32 +01:00
install -m 755 -s -p calibrate $(SBIN_DIR)
2015-09-03 20:01:45 +01:00
@IN@ install -m 755 -s -p flexd $(SBIN_DIR)
installhelp:
2016-04-01 16:06:32 +01:00
install -b -m 755 -D -d $(VAR_DIR)
install -b -m 755 -D -d $(VAR_DIR)/node/help
install -b -m 644 -p etc/help/*.hlp $(VAR_DIR)/node/help
2015-09-03 20:01:45 +01:00
installconf: installhelp
2016-04-01 16:06:32 +01:00
install -b -m 755 -D -d $(ETC_DIR)
2017-08-22 13:54:39 +01:00
install -b -m 600 -p etc/uronode.announce $(ETC_DIR)
2016-04-01 16:06:32 +01:00
install -b -m 600 -p etc/uronode.conf $(ETC_DIR)
install -b -m 600 -p etc/uronode.perms $(ETC_DIR)
install -b -m 600 -p etc/uronode.info $(ETC_DIR)
install -b -m 600 -p etc/uronode.motd $(ETC_DIR)
install -b -m 600 -p etc/uronode.users $(ETC_DIR)
install -b -m 600 -p etc/uronode.routes $(ETC_DIR)
install -b -m 600 -p etc/flexd.conf $(ETC_DIR)
2015-09-03 20:01:45 +01:00
installman:
install -m 755 -D -d $(MAN_DIR)/man1 $(MAN_DIR)/man5 $(MAN_DIR)/man8
2015-11-22 14:56:30 +00:00
install -m 644 -p man/nodeusers.1 $(MAN_DIR)/man1
install -m 644 -p man/uronode.conf.5 $(MAN_DIR)/man5
install -m 644 -p man/uronode.perms.5 $(MAN_DIR)/man5
install -m 644 -p man/flexd.conf.5 $(MAN_DIR)/man5
install -m 644 -p man/uronode.8 $(MAN_DIR)/man8
2016-04-01 16:06:32 +01:00
install -m 644 -p man/calibrate.8 $(MAN_DIR)/man8
2015-11-22 14:56:30 +00:00
install -m 644 -p man/axdigi.8 $(MAN_DIR)/man8
install -m 644 -p man/flexd.8 $(MAN_DIR)/man8
2015-09-03 20:01:45 +01:00
2021-01-27 21:26:06 +00:00
upgrade: installbin installman installhelp
2017-08-22 13:54:39 +01:00
install -b -m 600 -p etc/uronode.announce $(ETC_DIR)
2015-09-03 20:01:45 +01:00
install -m 755 -p uronode $(SBIN_DIR)
install -m 755 -p nodeusers $(SBIN_DIR)
2016-04-01 16:06:32 +01:00
install -m 755 -p calibrate $(SBIN_DIR)
@IN@ install -m 755 -p flexd $(SBIN_DIR)
2015-09-03 20:01:45 +01:00
install -m 755 -p axdigi $(SBIN_DIR)
2017-08-22 13:54:39 +01:00
2015-09-03 20:01:45 +01:00
clean:
2016-04-01 16:06:32 +01:00
rm -f *.o *~ *.bak *.orig make.debug nodeusers uronode flexd axdigi calibrate
2015-09-03 20:01:45 +01:00
rm -f etc/*~ etc/*.bak etc/*.orig
rm -f etc/help/*~ etc/help/*.bak etc/help/*.orig
distclean: clean
rm -f .depend Makefile.include config.h
2016-04-01 16:06:32 +01:00
rm -f uronode nodeusers axdigi calibrate @FLEXNET@
2015-09-03 20:01:45 +01:00
rm -f Makefile make.debug
depend:
2016-04-01 16:06:32 +01:00
$(CC) $(CFLAGS) -M $(COMMON_SRC) $(NODE_SRC) $(NODEUSERS_SRC) $(FLEXD_SRC) $(CALIBRATE_SRC) > .depend
2015-09-03 20:01:45 +01:00
uronode: $(COMMON_OBJS) $(NODE_OBJS)
$(LD) $(LDFLAGS) -o uronode $(COMMON_OBJS) $(NODE_OBJS) $(LIBS) $(ZLIB)
nodeusers: $(COMMON_OBJS) $(NODEUSERS_OBJS)
$(LD) $(LDFLAGS) -o nodeusers $(COMMON_OBJS) $(NODEUSERS_OBJS) $(LIBS) $(ZLIB)
flexd: $(FLEXD_OBJS)
$(LD) $(LDFLAGS) -o flexd $(FLEXD_OBJS) $(LIBS) $(ZLIB)
2016-04-01 16:06:32 +01:00
calibrate: $(CALIBRATE_OBJS)
$(LD) $(LDFLAGS) -o calibrate $(CALIBRATE_OBJS) $(LIBS) $(ZLIB)
2015-09-03 20:01:45 +01:00
axdigi: $(DIGI_OBJS)
2016-04-01 16:06:32 +01:00
$(LD) $(LDFLAGS) -o axdigi $(DIGI_OBJS) $(LIBS) $(ZLIB)
2015-09-03 20:01:45 +01:00
ifeq (.depend,$(wildcard .depend))
include .depend
endif