-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
99 lines (85 loc) · 2.58 KB
/
Makefile.in
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
# Makefile for Firebird BBS 3.0 SM series
# deliver from SEEDNet BBS generation 1
# $Id: Makefile.in,v 2.1 2003-06-28 05:49:03 henry Exp $
#################################################################
# Makefile for SEEDNet BBS v1.0
# Id: Makefile.in,v 1.11 1999/03/23 13:30:23 edwardc Exp
#################################################################
# 1. This package is derived from Firebird BBS 1.5, which was
# developed by the Department of Computer Science & Information
# Engineering, Chung Chen University of Taiwan, ROC.
# and under Firebird 2.66M the package is developed by the
# Board of System Administrators, Malaysian Students' Association In Taiwan.
#
# 2. The example site is bbs.seed.net.tw (139.175.252.15)
#
# 3. The developers of this package can be reached by
#
# 4. This Makefile is for "@systype@"
#
# This Makefile is generated automatic by configure
#############################################################
#### Setup the following site-specific information ####
#############################################################
# The home directory and uid/gid info for user 'bbs'
BBSHOME = @BBS_HOME@
BBSUID = @BBS_UID@
BBSGRP = @BBS_GID@
OS_DEF = @OS_DEF@
CC = @CC@
CFLAGS = @CFLAGS@
LIBS = @LIBS@
INSTALL = @INSTALL@
CSIE_DEF = @CSIE_DEF@
DIRS = @DIRS@
# You needn't change the make rule, if you can't understand what are you doing
all:
@echo "== Making main program and relatve src =="
@for x in $(DIRS); \
do \
echo "--> $$x"; \
(cd $$x; make $(MAKEFLAG) all ; cd .. ); \
echo "<-- $$x"; \
echo " "; \
done
echo "done."
install: all
@echo "== Installing Everything ... =="
@for x in $(DIRS); \
do \
echo "--> $$x"; \
(cd $$x; make install ; cd .. ); \
echo "<-- $$x"; \
echo " "; \
done
chown -R $(BBSUID):$(BBSGRP) $(BBSHOME)
update: all
@echo "== update binary ... =="
@echo "-->src/"
(cd src; make $(MAKEFLAG) update; cd ..)
@echo "<--src/"
clean:
@echo "== cleanning junks, object files, and binaries .. =="
-rm -fr *~ *.o *.bak *.tmp
@for x in $(DIRS); \
do \
echo "--> $$x"; \
(cd $$x; make clean ; cd .. ); \
echo "<-- $$x"; \
echo " "; \
done
echo "done."
cleanall: clean
@echo "== cleanning all objfile, binaries .. =="
-rm -fr *~ *.o *.bak* *.save *.tmp shm.tmp configure.inf config.log config.cache DEADVE
-rm -fr ./include/bbs/config.h ./include/config.h
-rm -fr ./Makefile ./src/Makefile ./lib/Makefile
@for x in $(DIRS); \
do \
echo "--> $$x"; \
(cd $$x; make cleanall ; cd .. ); \
echo "<-- $$x"; \
echo " "; \
done
-rm -fr Makefile