home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
yacl-012.zip
/
makefile.bc
< prev
next >
Wrap
Makefile
|
1995-04-09
|
4KB
|
159 lines
!if !$d(YACLPATH)
!error Please define the environment variable YACLPATH.
!endif
# If you have a RAM drive of 1 meg or so, define the environment variable
# RAMDRIVE to point to that drive (e.g., set RAMDRIVE=h:). Then, if you type
#
# make -fmakefile.bc
#
# it will first copy all the header files to the ram drive, make clean and
# do the whole make. Reading header files from the ram drive speeds up
# compilation significantly.
!include $(YACLPATH)\control\bcmak.ctl
!if $d(RAMDRIVE)
# COPY_TO_RAM = copyToRam
!endif
FLAGS = -DYACLPLATFORM=$(YACLPLATFORM)
!if $d(DEBUG)
FLAGS = $(FLAGS) -DDEBUG
!endif
!if $d(BUILD_DLL)
FLAGS = $(FLAGS) -DBUILD_DLL
!endif
yacl: $(COPY_TO_RAM) libdir base io ui
libdir:
-md $(YACLPATH)\lib
-md $(YACLPATH)\lib\$(YACLPLATFORM)
base:
cd base
-$(MAKE) -fmakefile.bc $(FLAGS)
-cd ..
io:
cd io
-$(MAKE) -fmakefile.bc $(FLAGS)
-cd ..
ui:
!if $(YACLPLATFORM) == windows || $(YACLPLATFORM) == os2
cd ui
-$(MAKE) -fmakefile.bc $(FLAGS)
-cd ..
!else
@echo UI not made: not supported for $(YACLPLATFORM)
!endif
# -------------------- Targets below are for my use only ---------------
uidemos:
cd uidemo
make -fmakefile.bc
cd ..
everything: yacl uidemos
copyToRam:
-md $(RAMDRIVE)\base
copy base\*.h $(RAMDRIVE)\base
-md $(RAMDRIVE)\io
copy io\*.h $(RAMDRIVE)\io
-md $(RAMDRIVE)\ui
copy ui\*.h $(RAMDRIVE)\ui
dist:
-rm -f yacl.zip
-copy $(BCPATH)\include\ctl3d.h lib\windows
ls control/* base/*.h base/*.cxx base/makefile.* io/*.h io/*.cxx \
io/makefile.* ui/*.h ui/*.cxx ui/makefile.* > $(TMP)\makxxx.tmp
find basedemo uidemo -type f -print > $(TMP)\makyyy.tmp
find lib -name ctl3d* -print >> $(TMP)\makyyy.tmp
egrep -v "\.(cfg|ini|tdw|log|lib|zip|bak|obj|exe|map|res|rws|o)$" $(TMP)\makyyy.tmp >> $(TMP)\makxxx.tmp
find tools -print >> $(TMP)\makxxx.tmp
echo shipping.lst >> $(TMP)\makxxx.tmp
ls *.txt makefile.* >> $(TMP)\makxxx.tmp
egrep -v "misc|zzsave" < $(TMP)\makxxx.tmp > $(TMP)\makyyy.tmp
sort $(TMP)\makyyy.tmp > $(TMP)\makxxx.tmp
$(ZIP) yacl.zip -@ < $(TMP)\makxxx.tmp
zip:
rm -f yacl_all.zip
find . -print > $(TMP)\makxxxx.tmp
egrep -v "\.(cfg|lib|a|zip|map|bak|obj|exe|res|rws|~h|~rc|log|dvi|aux|cmt|tbl|o|dll)$" < $(TMP)\makxxxx.tmp > $(TMP)\makyyy.tmp
echo ./lib/windows/ctl3d.dll >> $(TMP)\makyyy.tmp
sort < $(TMP)\makyyy.tmp > $(TMP)\makxxxx.tmp
$(ZIP) yacl_all.zip -@ < $(TMP)\makxxxx.tmp
rm -f $(TMP)/makxxxx.tmp $(TMP)/makyyy.tmp
srczip:
-rm -f yaclsrc.zip
-copy $(BCPATH)\include\ctl3d.h lib\windows
ls base/*.h base/*.cxx base/makefile.* io/*.h io/*.cxx io/makefile.* \
ui/*.h ui/*.cxx ui/makefile.* > $(TMP)\makxxx.tmp
find basedemo uidemo uidevlop -type f -print > $(TMP)\makyyy.tmp
egrep "makefile|cxx$|h$|rc$|def$|txt$" $(TMP)\makyyy.tmp >> $(TMP)\makxxx.tmp
find tools -print >> $(TMP)\makxxx.tmp
echo "shipping.lst" >> $(TMP)\makxxx.tmp
echo "lib/windows/ctl3d.dll" >> $(TMP)\makxxx.tmp
echo "lib/windows/ctl3d.h" >> $(TMP)\makxxx.tmp
echo "changlog" >> $(TMP)\makxxx.tmp
ls *.txt *.ctl makefile.* >> $(TMP)\makxxx.tmp
egrep -v "misc|zzsave" < $(TMP)\makxxx.tmp > $(TMP)\makyyy.tmp
sort $(TMP)\makyyy.tmp > $(TMP)\makxxx.tmp
$(ZIP) yaclsrc.zip -@ < $(TMP)\makxxx.tmp
clean:
cd base
-make -fmakefile.bc clean
cd ..\io
-make -fmakefile.bc clean
cd ..\ui
-make -fmakefile.bc clean
cd ..
cd basedemo
-rm -f */*.obj */*.exe */*.map
cd ..\uidemo
-rm -f */*.obj */*.exe */*.map
cd ..