home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / vclassrc.zip / Makefile < prev    next >
Makefile  |  1998-12-27  |  2KB  |  49 lines

  1.  
  2. default:
  3.     @echo VClassed's Makefile 
  4.     @echo -------------------
  5.     @echo make all          : Creates zip archive with all what's needed for distribution
  6.     @echo make vclassed.exe : Creates main program
  7.     @echo make install.exe  : Creates install program
  8.     @echo make pack         : Creates distribution packages
  9.     @echo make dist         : Same as 'make all'
  10.     @echo make distsrc      : Creates source package
  11.  
  12. all: zip
  13.  
  14. procs.obj: procs.c
  15.     gcc -Zomf -c procs.c
  16.  
  17. vclassed.exe: res/VClassed.RES procs.obj vclassed.h
  18.     gcc -Zomf -Zsys vclassed.c procs.obj res/VClassed.RES vclassed.def
  19.  
  20. install.res: res/install.rc res/install.ico
  21.     @echo Building Install's resources
  22.     rc -r res/install.rc install.res
  23.  
  24. install.exe: install.c install.h install.res
  25.     gcc -Zomf -Zsys install.c install.RES install.def
  26.  
  27. vclassed.pak: install.exe vclassed.exe doc/readme.txt doc/vclassed16.txt doc/COPYING res/vclassed.ico
  28.     @echo Building VClassed pack
  29.     @echo vclassed.exe > pack.txt
  30.     @echo doc\readme.txt >> pack.txt
  31.     @echo doc\vclassed16.txt >> pack.txt
  32.     @echo doc\COPYING >> pack.txt
  33.     @echo res\vclassed.ico >> pack.txt
  34.     @pack pack.txt vclassed.pak /l
  35.     @rm pack.txt
  36.  
  37. dist: vclassed.pak install.exe 
  38.     @echo Making distribution archive
  39.     @zip -j VClassed16 install.exe vclassed.pak doc\readme.txt
  40.  
  41. distsrc:
  42.     @echo Making distribution archive
  43.     zip VClassed16src doc/*
  44.     zip VClassed16src res/*
  45.     zip VClassed16src install.c install.h install.def vclassed.c procs.c vclassed.h vclassed.def Makefile
  46.  
  47. clean:
  48.     @echo Cleaning up
  49.     @rm *.obj *.exe install.res *.pak *.zip pack.txt