home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / msgapi38.zip / SRC / MAKEFILE.EMX < prev    next >
Text File  |  1995-03-21  |  2KB  |  73 lines

  1. #############################################################################
  2. ##        MsgAPI Makefile for EMX 0.8h (GCC 2.5.8) under OS/2 2.11         ##
  3. #############################################################################
  4.  
  5. # This makefile only creates a library for static linking, not a 32-bit DLL.
  6. # The initial compile creates Unix-style object and library files, then
  7. # uses one of the EMX utilities to convert the library file to OMF format
  8. # (for use with LINK386).
  9.  
  10. # The whole 32-bit port of MsgAPI to EMX and OS/2 compiles, and has
  11. # undergone minimal testing, but do *not* assume it is free of bugs.
  12.  
  13. # Tested with Dennis Vadura's DMAKE Version 3.80 Patch Level 1, and
  14. # GNU Make Version 3.70.  The assumed shell is \OS2\CMD.EXE.
  15.  
  16. # This port was tested by David Begley (david@harpo.nepean.uws.edu.au).
  17.  
  18. CC=    gcc -s 
  19. CFLAGS=    -Wall
  20. CDEFS=    -DOS_2 -D__FLAT__ -D__386__ 
  21. COPT=    -O4 \
  22.     # -fomit-frame-pointer -fstrength-reduce -funroll-loops # -m486
  23.  
  24. # I=    .
  25. I=    ../include
  26. # TARGET=    em_mapif.lib
  27. TARGET=    msgapi.lib
  28. # RM=    erase
  29. RM=    rm -f
  30.  
  31. OBJS=    1stchar.o msgapi.o api_sdm.o api_sq.o cvtdate.o \
  32.     date2bin.o dosdate.o fexist.o ffind.o flush.o \
  33.     months.o parsenn.o qksort.o strftim.o stristr.o \
  34.     strocpy.o trail.o weekday.o
  35.  
  36.  
  37. # Thunderbirds are go!
  38.  
  39.  
  40. .c.o:
  41.     $(CC) $(CFLAGS) $(CDEFS) $(COPT) -I$(I) -c $<
  42.  
  43. $(TARGET):    msgapi.a
  44.     emxomf -sl msgapi.a
  45.  
  46. msgapi.a:    $(OBJS)
  47.     ar ruv $@ $(OBJS)
  48.  
  49. clean:
  50.     $(RM) msgapi.a msgapi.lib $(TARGET) $(OBJS) 2>/dev/nul
  51.  
  52.  
  53. # Dependencies taken from SJD's generic makefile.
  54.  
  55. 1stchar.o:    1stchar.c
  56. msgapi.o:    msgapi.c
  57. api_sdm.o:    api_sdm.c
  58. api_sq.o:    api_sq.c
  59. cvtdate.o:    cvtdate.c
  60. date2bin.o:    date2bin.c
  61. dosdate.o:    dosdate.c
  62. fexist.o:    fexist.c
  63. ffind.o:    ffind.c
  64. flush.o:    flush.c
  65. months.o:    months.c
  66. parsenn.o:    parsenn.c
  67. qksort.o:    qksort.c
  68. strftim.o:    strftim.c
  69. stristr.o:    stristr.c
  70. strocpy.o:    strocpy.c
  71. trail.o:    trail.c
  72. weekday.o:    weekday.c
  73.