home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / MAXMAILP.ZIP / MAKEFILE.OS2 < prev    next >
Text File  |  1991-01-04  |  1KB  |  44 lines

  1. # Maxmailp ( OS2 VERSION ONLY ) makefile, for use with Nmake only!
  2.  
  3. # To produce a `.cbj' file from a `.c' file using MS-C.
  4. #.c.cbj:; cl /A$(MODEL) /FR$*.sbr /Fo$*.cbj /c $(CFLAGS) $< 
  5. .c.cbj:; cl /A$(MODEL) /Zp1 /Fo$*.cbj /c /Lp $(CFLAGS) $<
  6. # Insert ----------------> /Zi here for Code View Debugging
  7. #                                        /Lp is for protected mode
  8.  
  9. # common macros used.  Must use Large Model for OS/2 and interfacing
  10. # with my Com Routine library (GATE.LIB).
  11. MODEL  = L
  12. AFLAGS =
  13.  
  14. LFLAGS = GATE + /NOD:LLIBCE + LLIBCEP /B /STACK:15360
  15. # Insert ------------/CO here for Code View Link
  16. CFLAGS = /DOS2 /Od $(COPTS)
  17.  
  18. MAPFIL = NUL
  19. MAKE_TMP= $(TEMP)
  20.  
  21. OBJS1 = maxmailp.cbj msghelp.cbj
  22. OBJS2 = init.cbj file.cbj config.cbj 
  23. OBJS3 = misc.cbj maxlib.cbj
  24.  
  25. OBJS = $(OBJS1) $(OBJS2) $(OBJS3) 
  26.  
  27. INC1 = maxmail.h globals.h
  28. INC2 = protos.h
  29. INCS = $(INC1) $(INC2)
  30.  
  31. all : maxmailp.exe
  32.  
  33. maxmailp.exe : $(OBJS) makefile
  34.             link @<<
  35. $(OBJS1)+
  36. $(OBJS2)+
  37. $(OBJS3)
  38. maxmailp
  39. $(MAPFIL)
  40. $(LFLAGS);
  41. <<
  42.  
  43. $(OBJS) : $(INCS)
  44.