Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

GNUmakefile 1.17 KB
Newer Older
rswindell's avatar
rswindell committed
1 2 3 4 5 6 7 8
# GNUmakefile

#########################################################################
# Makefile for SCFG			 											#
# For use with GNU make and GNU C Compiler								#
# @format.tab-size 4, @format.use-tabs true								#
#																		#
# Linux: gmake															#
9
# FreeBSD: gmake os=FreeBSD												#
rswindell's avatar
rswindell committed
10
#																		#
11
# Optional build targets: clean
rswindell's avatar
rswindell committed
12 13 14 15
#########################################################################

# $Id$

16
#USE_DIALOG =	1	# Dialog vesrion of UIFC
17
#USE_FLTK =	1	# Use Windowed version
18 19 20 21
ifndef NO_CURSES
 #USE_CURSES	=	1	# Curses version of UIFC
 USE_UIFC32	=	1	# NEW curses version of uifc
endif
rswindell's avatar
rswindell committed
22

23 24 25
UIFC_SRC	=	../../uifc
XPDEV	=	../../xpdev
SBBS_SRC =	..
26
NEED_UIFC	:=	1
27 28 29 30 31
CFLAGS		=	-DSCFG

include $(XPDEV)/Common.gmake
include $(UIFC_SRC)/Common.gmake
include $(SBBS_SRC)/Common.gmake
32

33
SCFG	:=	$(EXEODIR)$(SLASH)scfg$(EXEFILE)
rswindell's avatar
rswindell committed
34

35
$(MAKEHELP): makehelp.c
36
	$(QUIET)$(CC) $(CFLAGS) makehelp.c -o $(MAKEHELP)
rswindell's avatar
rswindell committed
37

38
$(SCFGHELP): $(OBJS) $(MAKEHELP)
39
	$(QUIET)$(MAKEHELP) $(EXEODIR)
rswindell's avatar
rswindell committed
40

41
# SCFG Build Rule
rswindell's avatar
rswindell committed
42
$(SCFG): $(OBJS)
43
   ifdef USE_DIALOG
44
	$(QUIET)$(MAKE) --no-print-directory -C ../../libdialog
45
   endif
rswindell's avatar
rswindell committed
46
	@echo Linking $@
47
	$(QUIET)$(CXX) -o $@ $(OBJS) $(LDFLAGS)