home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 July / Chip_1998-07_cd.bin / zkuste / JBuilder / JBuild / libs / disk1 / DATA.1 / Makefile.msc < prev    next >
Makefile  |  1996-10-16  |  3KB  |  111 lines

  1. # this makefile assumes Microsoft Visual C++ 2.0
  2. # edit the IBASE variable to point to the Interbase directory
  3. IBASE=        ..
  4. # edit the MSTDIR variable to point to the Microsoft tools directory
  5. MSTDIR=        \msvc20
  6. INCLUDE=    -I$(IBASE)\include -I$(MSTDIR)\include
  7. LIBS=        $(MSTDIR)\lib\msvcrt.lib $(IBASE)\lib\gds32_ms.lib
  8. DB=        employee.gdb
  9. GPRE=        $(IBASE)\bin\gpre -c -n
  10. GPRE_M=        $(IBASE)\bin\gpre -c -n -m
  11. ISQL=        $(IBASE)\bin\isql
  12. CFLAGS=        -Zi -w -MD -DWIN32 $(INCLUDE)
  13. CC=        cl
  14. LINK=        link
  15. LIBRARIAN=    lib
  16. COPY=        copy
  17.  
  18. .SUFFIXES: .e .c
  19.  
  20. .e.exe:
  21.     $(GPRE) $< -d $(DB)
  22.     $(CC) $(CFLAGS) $(<:.e=.c) $(LIBS)
  23.  
  24. .c.exe:
  25.     $(CC) $(CFLAGS) $< $(LIBS)
  26.  
  27.  
  28. all: employe2.gdb api1.exe api10.exe api11.exe api12.exe api13.exe \
  29.      api14.exe api15.exe api16.exe api16t.exe api2.exe api3.exe \
  30.      api4.exe api5.exe api6.exe api7.exe api8.exe \
  31.      api9.exe apifull.exe dyn1.exe dyn2.exe dyn3.exe dyn4.exe \
  32.      dyn5.exe dynfull.exe stat1.exe stat10.exe \
  33.      stat11.exe stat12.exe stat12t.exe stat2.exe stat3.exe \
  34.      stat4.exe stat5.exe stat6.exe stat7.exe stat8.exe stat9.exe \
  35.      FILTERLIB FUNCLIB
  36.  
  37. employe2.gdb: create2.sql
  38.     $(ISQL) -i $?
  39.  
  40. FILTERLIB: api9f.dll api9f.lib
  41.  
  42. api9f.lib api9f.exp: api9f.obj api9f.def
  43.     $(LIBRARIAN) api9f.obj -out:api9f.lib -def:api9f.def -machine:i386 \
  44.     -subsystem:console
  45.  
  46. api9f.dll: api9f.exp api9f.obj
  47. # build a small argument file and use it
  48.     @echo -entry:_DllMainCRTStartup@12 > link.arg
  49.         @echo -subsystem:console -DLL -DEBUG:FULL >> link.arg
  50.         @echo -out:$@ >> link.arg
  51.     @echo $? $(LIBS) >> link.arg
  52.     $(LINK) @link.arg
  53.     $(COPY) $@ FILTERLIB.DLL
  54.  
  55. api9f.obj: api9f.c
  56.     $(CC) $(CFLAGS) -c -LD $?
  57.  
  58. api9.exe: api9.c
  59.     $(CC) $(CFLAGS) $? $(LIBS)
  60.     -$(ISQL) employee.gdb -i filter.sql
  61.  
  62. api14.c:  api14.e
  63.     $(GPRE_M) $? -d $(DB)
  64.  
  65. FUNCLIB: udflib.dll udflib.lib
  66.  
  67. udflib.lib udflib.exp: udflib.obj udflib.def
  68.     $(LIBRARIAN) udflib.obj -out:udflib.lib -def:udflib.def -machine:i386 \
  69.     -subsystem:console
  70.  
  71. udflib.dll: udflib.obj udflib.exp
  72. # build a small argument file and use it
  73.     @echo -entry:_DllMainCRTStartup@12 > link.arg
  74.         @echo -subsystem:console -DLL >> link.arg
  75.         @echo -out:$@ >> link.arg
  76.     @echo $? $(LIBS) >> link.arg
  77.     $(LINK) @link.arg
  78.  
  79. udflib.obj: udflib.c
  80.     $(CC) $(CFLAGS) -c -LD $?
  81.  
  82. stat10.c: stat10.e
  83.     $(GPRE_M) $?
  84.  
  85. stat11.c: stat11.e
  86.     $(GPRE_M) $?
  87.  
  88. stat12.c: stat12.e
  89.     $(GPRE_M) $?
  90.  
  91. stat12t.c: stat12t.e
  92.     $(GPRE_M) $?
  93.  
  94. dyn1.c: dyn1.e
  95.     $(GPRE_M) $?
  96.  
  97. dyn2.c: dyn2.e
  98.     $(GPRE_M) $?
  99.  
  100. dyn3.c: dyn3.e
  101.     $(GPRE_M) $?
  102.  
  103. dyn4.c: dyn4.e
  104.     $(GPRE_M) $?
  105.  
  106. dyn5.c: dyn5.e
  107.     $(GPRE_M) $?
  108.  
  109. dynfull.c: dynfull.e
  110.     $(GPRE_M) $?
  111.