home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool.zip / OOL / samples / sample14 / emx.MAK < prev    next >
Makefile  |  1997-04-07  |  733b  |  35 lines

  1.  
  2. #Object files/libraries to link
  3. OBJS=sample14.obj 
  4. LIBS=$(OOL)\lib\OOLW3E03.LIB 
  5.  
  6. #Default compiler switches
  7. CC=gcc.exe
  8. DFLAGS=-Zomf -c -fhandle-exceptions
  9.  
  10. #Rules how to build the application
  11. CFLAGS= -Zmt -Zcrtdll
  12. LINK=gcc.exe -Zomf -Zcrtdll -Zlinker /PACKD -Zlinker /PACKC -Zlinker /PM:PM -o
  13.  
  14. #All files to build
  15. all: sample14.exe
  16.  
  17. #Rules to build the object-files
  18. %.obj: %.cpp
  19.     $(CC) $(CFLAGS) $(DFLAGS) $<
  20.  
  21. #Rules to build the application
  22. sample14.exe: $(OBJS) sample14.res
  23.     $(LINK) sample14.exe $(OBJS) $(LIBS)
  24.     rc sample14.res sample14.exe
  25.  
  26. #Dependencies
  27. sample14.obj: sample14.cpp
  28.  
  29. #Rules to build the resource-files
  30. sample14.res: sample14.rc\
  31.     resource.h\
  32.     sample14.dlg
  33.     rc -r sample14.rc
  34.  
  35.