home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / shapewin.zip / Makefile < prev    next >
Makefile  |  1998-09-22  |  2KB  |  92 lines

  1. #
  2. # Makefile for Shape Window Control & Sample Programs
  3. #
  4.  
  5. CC    = gcc -c
  6. CFLAGS    = -Zmtd -O2
  7. LD    = gcc
  8. LDFLAGS    = -s -Zmtd
  9. EMXPATH = D:\emx
  10.  
  11. LIBS    =
  12.  
  13. #
  14. # Inference Rules
  15. #
  16. .c.o :
  17.     $(CC) $(CFLAGS) $*.c
  18.  
  19. #
  20. # Target to Build
  21. #
  22.  
  23. TARGET = trbitmap.exe tranime.exe treyes.exe
  24.  
  25. all : $(TARGET)
  26.  
  27. #
  28. # Shape Window Control
  29. #
  30.  
  31. SHSRCS = shapewin.c
  32. SHOBJS = shapewin.o
  33.  
  34. shapewin.o : shapewin.c shapewin.h
  35.  
  36. #
  37. # Bitmap Manipulation Library
  38. #
  39.  
  40. BLSRCS = bmpload.c
  41. BLOBJS = bmpload.o
  42.  
  43. bmpload.o : bmpload.c bmpload.h
  44.  
  45. #
  46. # Display Bitmap with Transparent Background
  47. #
  48.  
  49. BMSRCS = trbitmap.c
  50. BMOBJS = trbitmap.o
  51. BMLIBS = shapewin.o bmpload.o
  52.  
  53. trbitmap.exe : $(BMOBJS) $(BMLIBS) trbitmap.def trbitmap.res
  54.     $(LD) $(LDFLAGS) -o trbitmap.exe trbitmap.def trbitmap.res $(BMOBJS) $(BMLIBS) $(LIBS)
  55.  
  56. trbitmap.res : trbitmap.rc trbitres.h trbitmap.ico
  57.     rc -r -i $(EMXPATH)\include trbitmap.rc
  58.  
  59. trbitmap.o : trbitmap.c trbitmap.h trbitres.h shapewin.h bmpload.h
  60.  
  61. #
  62. # Animate Bitmaps with Transparent Background
  63. #
  64.  
  65. ANSRCS = tranime.c
  66. ANOBJS = tranime.o
  67. ANLIBS = shapewin.o bmpload.o
  68.  
  69. tranime.exe : $(ANOBJS) $(ANLIBS) tranime.def tranime.res
  70.     $(LD) $(LDFLAGS) -o tranime.exe tranime.def tranime.res $(ANOBJS) $(ANLIBS) $(LIBS)
  71.  
  72. tranime.res : tranime.rc tranires.h tranime.ico
  73.     rc -r -i $(EMXPATH)\include tranime.rc
  74.  
  75. tranime.o : tranime.c tranime.h tranires.h shapewin.h bmpload.h
  76.  
  77. #
  78. # PM-Eyes with transparent background
  79. #
  80.  
  81. EYSRCS = treyes.c
  82. EYOBJS = treyes.o
  83. EYLIBS = shapewin.o
  84.  
  85. treyes.exe : $(EYOBJS) $(EYLIBS) treyes.def treyes.res
  86.     $(LD) $(LDFLAGS) -o treyes.exe treyes.def treyes.res $(EYOBJS) $(EYLIBS) $(LIBS)
  87.  
  88. treyes.res : treyes.rc treyeres.h treyes.ico
  89.     rc -r -i $(EMXPATH)\include treyes.rc
  90.  
  91. treyes.o : treyes.c treyes.h treyeres.h shapewin.h
  92.