Makefile
上传用户:minyiyu
上传日期:2018-12-24
资源大小:864k
文件大小:2k
- # Makefile for Firebird BBS 3.0 series
- # deliver from SEEDNet BBS generation 1
- # $Id: Makefile,v 1.1 2000/01/15 01:45:42 edwardc Exp $
- all:
- @echo "please read 00README first before upgrade!"
- @echo "check out the 00README if your version is out of list"
- @echo " "
- @echo "please type 'make versionid', "
- @echo " "
- @echo "make ph4 : upgrade from phoenix 4.0 to Firebird 3.0"
- @echo "make 2.0 : upgrade from 2.0 (CCU) "
- @echo "make 2.66m : upgrade from 2.66M to 3.0 "
- @echo "make 2.62m : upgrade from 2.62M to 3.0 "
- @echo "make 2.5 : upgrade from 2.5 (CCU) to 3.0"
- @echo "make Maple2 : upgrade from Maple 2.36 "
- @echo "make unknown : upgrade from unknown version (read 00README first.)"
- @echo " "
- @echo " "
-
- clean:
- rm -fr *.o *~ DEAD* repass chboard rehome refriend *core*
- 2.0:
- @echo "You may put your PH4 struct.h into include/struct.PH4.h, then"
- @echo "you may enter this translation procedure."
- @echo -n "press any key to continue."
- @read xx
- $(CC) -g $(CFLAGS) -I./include -I../../include -L../../lib
- -DSTRUCT_VERSION="'PH4'" -o repass repass.c -lBBS
- $(CC) -g $(CFLAGS) -I./include -I../../include -o rehome rehome.c
- $(CC) -g $(CFLAGS) -I../../include -o chboard chboard.c ../../src/record.c
- 2.66m:
- $(CC) -g $(CFLAGS) -I./include -I../../include -L../../lib
- -DSTRUCT_VERSION="'2.66M'" -o repass repass.c -lBBS
- ./repass 2.66M
- 2.62m:
- $(CC) -g $(CFLAGS) -I./include -I../../include -L../../lib
- -DSTRUCT_VERSION="'2.62M'" -o repass repass.c -lBBS
- ./repass 2.62M
- $(CC) -g $(CFLAGS) -I./include -I../../include
- -o refriend refriend.c ../../src/record.c
- ./refriend
- Maple2:
- $(CC) -g $(CFLAGS) -I./include -I../../include -L../../lib
- -D_MAPLE_2 -DSTRUCT_VERSION="'M2'" -o repass repass.c -lBBS
- ./repass Maple2
- 2.5:
- $(CC) -g $(CFLAGS) -I./include -I../../include -L../../lib
- -DSTRUCT_VERSION="'2.5'" -o repass repass.c -lBBS
- ./repass 2.5
- @echo -n "now will translate boards flag .."
- @read xx
- $(CC) -g $(CFLAGS) -I../../include -o chboard chboard.c ../../src/record.c
- ./chboard
- $(CC) -g $(CFLAGS) -DPH4_CCU -I./include -I../../include
- -o refriend refriend.c ../../src/record.c
- ./refriend
- @echo "done. .PASSWDS.new is transalted password file."
- unknown:
- @echo "**warning** this section will tranaslate to 3.0 from unknown version"
- @echo "you must read 00README before."
- @read xx
- $(CC) -g $(CFLAGS) -I./include -I../../include -L../../lib
- -DSTRUCT_VERSION="'unknown'" -o repass repass.c -lBBS
- ./repass unknown