forked from huskyproject/fidoconf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile.bsd
105 lines (94 loc) · 4.21 KB
/
makefile.bsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# $Id$
#
# FreeBSD/OpenBSD/NetBSD makefile for building fidoconfig
# (legacy makefile, no dynlibs, no huskymak support)
#
# Use with GNU version of make (gmake, see ports collection)
# or BSD make (OS native)
UNIXID=bsd
NULL=@echo -n
include makefile.in2
# Directories
BINDIR= /usr/local/bin/
LIBDIR= /usr/local/lib/
INCDIR=/usr/local/include/
# programs
MKDIR=install
MKDIROPT=-d -m 755 -p
INSTALL=install
# install scripts options
ISOPT = -c -m 555
IBOPT = -c -m 555 -s
ILOPT = -c -m 444
IIOPT = -c -m 444
FCONF2AREASBBS= fconf2areasbbs
install: commonprogs
-$(MKDIR) $(MKDIROPT) $(BINDIR)
-$(MKDIR) $(MKDIROPT) $(INCDIR)fidoconf
$(INSTALL) $(IBOPT) $(FCONF2MSGED)$(EXE) $(BINDIR)
$(INSTALL) $(IBOPT) $(FCONF2GOLDED)$(EXE) $(BINDIR)
$(INSTALL) $(IBOPT) $(FCONF2AQUAED)$(EXE) $(BINDIR)
$(INSTALL) $(IBOPT) $(FCONF2FIDOGATE)$(EXE) $(BINDIR)
$(INSTALL) $(IBOPT) $(FCONF2SQUISH)$(EXE) $(BINDIR)
$(INSTALL) $(IBOPT) $(FCONF2TORNADO)$(EXE) $(BINDIR)
$(INSTALL) $(IBOPT) $(FCONF2BINKD)$(EXE) $(BINDIR)
$(INSTALL) $(IBOPT) $(FECFG2FCONF)$(EXE) $(BINDIR)
$(INSTALL) $(IBOPT) tparser$(EXE) $(BINDIR)
$(INSTALL) $(IBOPT) linked$(EXE) $(BINDIR)
$(INSTALL) $(ISOPT) linkedto $(BINDIR)
$(INSTALL) $(ISOPT) fconf2na.pl $(BINDIR)
$(INSTALL) $(ISOPT) $(FCONF2AREASBBS) $(BINDIR)
(cd doc && $(MAKE) install)
(cd man && $(MAKE) install)
@echo "To install library file invoke 'make libinstall'"
@echo "To install C header files invoke 'make hinstall'"
libinstall: commonlibs
$(INSTALL) $(ILOPT) $(LIBFIDOCONFIG)$(LIB) $(LIBDIR)
hinstall:
$(INSTALL) $(IIOPT) fidoconf.h $(INCDIR)$(DIRSEP)fidoconf
$(INSTALL) $(IIOPT) areatree.h $(INCDIR)$(DIRSEP)fidoconf
$(INSTALL) $(IIOPT) findtok.h $(INCDIR)$(DIRSEP)fidoconf
$(INSTALL) $(IIOPT) typesize.h $(INCDIR)$(DIRSEP)fidoconf
$(INSTALL) $(IIOPT) common.h $(INCDIR)$(DIRSEP)fidoconf
$(INSTALL) $(IIOPT) dirlayer.h $(INCDIR)$(DIRSEP)fidoconf
$(INSTALL) $(IIOPT) adcase.h $(INCDIR)$(DIRSEP)fidoconf
$(INSTALL) $(IIOPT) xstr.h $(INCDIR)$(DIRSEP)fidoconf
$(INSTALL) $(IIOPT) fidoconf.pas $(INCDIR)$(DIRSEP)fidoconf
$(INSTALL) $(IIOPT) crc.h $(INCDIR)$(DIRSEP)fidoconf
$(INSTALL) $(IIOPT) log.h $(INCDIR)$(DIRSEP)fidoconf
$(INSTALL) $(IIOPT) recode.h $(INCDIR)$(DIRSEP)fidoconf
$(INSTALL) $(IIOPT) tree.h $(INCDIR)$(DIRSEP)fidoconf
$(INSTALL) $(IIOPT) temp.h $(INCDIR)$(DIRSEP)fidoconf
$(INSTALL) $(IIOPT) afixcmd.h $(INCDIR)$(DIRSEP)fidoconf
$(INSTALL) $(IIOPT) arealist.h $(INCDIR)$(DIRSEP)fidoconf
$(INSTALL) $(IIOPT) stat.h $(INCDIR)$(DIRSEP)fidoconf
uninstall:
-$(RM) $(RMOPT) $(BINDIR)$(DIRSEP)$(FCONF2MSGED)$(EXE)
-$(RM) $(RMOPT) $(BINDIR)$(DIRSEP)$(FCONF2GOLDED)$(EXE)
-$(RM) $(RMOPT) $(BINDIR)$(DIRSEP)$(FCONF2AQUAED)$(EXE)
-$(RM) $(RMOPT) $(BINDIR)$(DIRSEP)$(FCONF2FIDOGATE)$(EXE)
-$(RM) $(RMOPT) $(BINDIR)$(DIRSEP)$(FCONF2SQUISH)$(EXE)
-$(RM) $(RMOPT) $(BINDIR)$(DIRSEP)$(FCONF2TORNADO)$(EXE)
-$(RM) $(RMOPT) $(BINDIR)$(DIRSEP)$(FCONF2BINKD)$(EXE)
-$(RM) $(RMOPT) $(BINDIR)$(DIRSEP)$(FECFG2FCONF)$(EXE)
-$(RM) $(RMOPT) $(BINDIR)$(DIRSEP)tparser$(EXE)
-$(RM) $(RMOPT) $(BINDIR)$(DIRSEP)linked$(EXE)
-$(RM) $(RMOPT) $(BINDIR)$(DIRSEP)linkedto
-$(RM) $(RMOPT) $(BINDIR)$(DIRSEP)fconf2na.pl
-$(RM) $(RMOPT) $(BINDIR)$(DIRSEP)$(FCONF2AREASBBS)
-$(RM) $(RMOPT) $(INCDIR)$(DIRSEP)fidoconf$(DIRSEP)fidoconf.h
-$(RM) $(RMOPT) $(INCDIR)$(DIRSEP)fidoconf$(DIRSEP)typesize.h
-$(RM) $(RMOPT) $(INCDIR)$(DIRSEP)fidoconf$(DIRSEP)common.h
-$(RM) $(RMOPT) $(INCDIR)$(DIRSEP)fidoconf$(DIRSEP)dirlayer.h
-$(RM) $(RMOPT) $(INCDIR)$(DIRSEP)fidoconf$(DIRSEP)adcase.h
-$(RM) $(RMOPT) $(INCDIR)$(DIRSEP)fidoconf$(DIRSEP)xstr.h
-$(RM) $(RMOPT) $(INCDIR)$(DIRSEP)fidoconf$(DIRSEP)fidoconf.pas
-$(RM) $(RMOPT) $(INCDIR)$(DIRSEP)fidoconf$(DIRSEP)crc.h
-$(RM) $(RMOPT) $(INCDIR)$(DIRSEP)fidoconf$(DIRSEP)log.h
-$(RM) $(RMOPT) $(INCDIR)$(DIRSEP)fidoconf$(DIRSEP)recode.h
-$(RM) $(RMOPT) $(INCDIR)$(DIRSEP)fidoconf$(DIRSEP)tree.h
-$(RM) $(RMOPT) $(INCDIR)$(DIRSEP)fidoconf$(DIRSEP)temp.h
-$(RM) $(RMOPT) $(INCDIR)$(DIRSEP)fidoconf$(DIRSEP)stat.h
-$(RM) $(RMOPT) $(LIBDIR)$(DIRSEP)$(LIBFIDOCONFIG)*
-(cd doc && $(MAKE) uninstall)
-(cd man && $(MAKE) uninstall)