home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / wpprg184.zip / WPPRGEXT.MAK < prev    next >
Text File  |  1993-12-27  |  2KB  |  59 lines

  1. #*********************************************************
  2. .SUFFIXES:
  3. .SUFFIXES: .c .obj .dll .csc .sc .h .ih .ph .psc .rc .res
  4.  
  5. #*********************************************************
  6. # set environment 
  7. #*********************************************************
  8. SOMTEMP = .\somtemp
  9. HPATH   = e:\toolkt21\c\os2h
  10. LIBPATH = e:\toolkt21\os2lib
  11.  
  12. #*********************************************************
  13. # set environment for sc
  14. #*********************************************************
  15. !if [set SMINCLUDE=.;e:\toolkt21\sc;] || \
  16.     [set SMTMP=$(SOMTEMP)] || \
  17.     [set SMEMIT=def;ih;h;ph;psc;sc;c]
  18. !endif
  19.  
  20. #*********************************************************
  21. # create temporary directory for sc
  22. #*********************************************************
  23. !if [cd $(SOMTEMP)]
  24. !  if [md $(SOMTEMP)]
  25. !    error error creating $(SOMTEMP) directory
  26. !  endif
  27. !else
  28. !  if [cd ..]
  29. !    error - Couldn't cd .. from $(SOMTEMP) directory
  30. !  endif
  31. !endif
  32.  
  33. #*********************************************************
  34. CC      = icc /c /Gd- /Se /Re /ss /Ms /Gm+ /Ge-
  35. LINK    = LINK386
  36. LDFLAGS = /noi /map /nol /nod /exepack /packcode /packdata /align:16
  37. DLLLIBS = DDE4NBS + os2386 som.lib
  38.  
  39. OBJS = wpprgext.obj
  40.  
  41. .csc.ih:
  42.         sc -v -r $*.csc
  43.  
  44. .c.obj:
  45.         $(CC) -I$(HPATH) -c $<
  46.  
  47. all: wpprgext.dll
  48.  
  49. wpprgext.ih:   $$(@B).csc $(HPATH)\wpdataf.h
  50.  
  51. wpprgext.obj: $$(@B).c $$(@B).ih $$(@B).h  $$(@B).sc $(HPATH)\wpdataf.h
  52.  
  53. wpprgext.dll: $$(@B).def $(OBJS) wpprgext.res
  54.          $(LINK) $(LDFLAGS) $(OBJS),$@,,$(DLLLIBS),$*;
  55.          rc $*.res $*.dll
  56.  
  57. wpprgext.res: $$(@B).rc $$(@B).ih
  58.          rc -r $*.rc $*.res
  59.