home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool.zip / OOL / samples / sample13 / emx.MAK next >
Makefile  |  1997-04-03  |  675b  |  27 lines

  1. #Object files/libraries to link
  2. OBJS=sample13.obj 
  3. LIBS=$(OOL)\LIB\OOLW3E03.LIB $(OOL)\LIB\OOLM3E03.LIB c:\emx\lib\mm2emx.lib c:\emx\lib\oolimp.lib
  4.  
  5. #Default compiler switches
  6. CC=gcc.exe
  7. DFLAGS=-Zomf -c -fhandle-exceptions
  8.  
  9. #Rules how to build the application
  10. CFLAGS= -Zmt -Zcrtdll -Zomf
  11. LINK=gcc.exe -Zomf -Zcrtdll -Zlinker /PACKD -Zlinker /PACKC -o
  12.  
  13. #All files to build
  14. all: sample13.exe
  15.  
  16. #Rules to build the object-files
  17. %.obj: %.cpp
  18.     $(CC) $(CFLAGS) $(DFLAGS) $<
  19.  
  20. #Rules to build the application
  21. sample13.exe: $(OBJS)
  22.     $(LINK) sample13.exe $(OBJS) $(LIBS) sample13.def
  23.  
  24. #Dependencies of the related files
  25. sample13.obj: sample13.cpp\
  26.     sample13.h
  27.