home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / me34src.zip / me3 / util / makefile.emx < prev    next >
Makefile  |  1995-01-21  |  1KB  |  43 lines

  1. SRC = \
  2. argh.c       dstring.c    fxpand.c     imin.c       regex.c   strinstr.c \
  3. canonize.c   dtable.c     i_to_a.c     l_to_a.c     savestr.c tobase.c   \
  4. catstrs.c    dumpdoc.c    iabs.c       lcase.c      spoof.c   ucase.c    \
  5. char.c       fname.c      imax.c       ranger1.c    ssort.c   wildmat.c  \
  6. ranger2.c    sheap.c
  7.  
  8. OBJ = $(SRC:.c=$O)
  9.  
  10. CFLAGS = $(BASECFLAGS) -I.
  11.  
  12. oops .PHONY:
  13.     @echo "You need to specify which version to compile\n\temx-mt\tOS/2-only using emx.dll and emxlibc.dll\n\temx-st\tOS/2-only with no special .dlls\n\temx-dos\tOS/2 and DOS using emx.dll or emx.exe"
  14.  
  15. emx-mt .PHONY :
  16.     $(MAKE) $(MAKEFILE) O=.obj A=.lib AR=emxomfar \
  17.        BASECFLAGS="-Zomf -Zmtd $(BASECFLAGS)" CC=$(CC) UTIL
  18.  
  19. emx-st .PHONY :
  20.     $(MAKE) $(MAKEFILE) O=.obj A=.lib AR=emxomfar \
  21.        BASECFLAGS="-Zomf -Zsys $(BASECFLAGS)" CC=$(CC) UTIL
  22.  
  23. emx-dos .PHONY :
  24.     $(MAKE) $(MAKEFILE) O=.o A=.a AR=ar BASECFLAGS="$(BASECFLAGS)" \
  25.        CC=$(CC) UTIL
  26.  
  27. UTIL .PHONY: announce util$A
  28.  
  29. announce:
  30.     @echo "******** Building the Utilities Library *************"
  31.     @echo "CC is:" $(CC)
  32.     @echo "CFLAGS are:" $(CFLAGS)
  33.  
  34. util$A: $(OBJ)
  35.     $(AR) r util$A $(OBJ)
  36.     $(AR) s util.a
  37.  
  38. clean:
  39.     rm -f *.o *.obj
  40.  
  41. realclean: clean
  42.     rm -f *.a *.lib
  43.