home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 28 / amigaformatcd28.iso / -seriously_amiga- / archivers / mpackppc-wos / src / mpack.os2 < prev    next >
Text File  |  1998-04-27  |  1KB  |  57 lines

  1. PROJ = mpack
  2.  
  3. # the following lines are for IBM CSet++ with debugging turned on
  4.  
  5. #CC        = icc
  6. #CCFLAGS   = -Ti
  7. #LINKFLAGS = -Ti -B"/runfromvdm"
  8. #EXEFLAG   = -Fe
  9. #ADDFILES  = getopt.c
  10.  
  11. # the following lines are for IBM CSet++
  12.  
  13. CC        = icc
  14. CCFLAGS   = 
  15. LINKFLAGS = -B"/runfromvdm"
  16. EXEFLAG   = -Fe
  17. ADDFILES  = getopt.c 
  18.  
  19. # the following lines are for EMX + GCC
  20.  
  21. #CC        = gcc
  22. #CCFLAGS   = -Zomf
  23. #LINKFLAGS = -Zomf -Zlinker /runfromvdm -Zlinker /pm:vio
  24. #EXEFLAG   = -o
  25. #ADDFILES  = 
  26.  
  27. # The rest is common to both compilers
  28.  
  29. FILES  = codes.c os2os.c os2pk.c encode.c magic.c string.c xmalloc.c \
  30.          md5c.c $(ADDFILES)
  31.  
  32. OBJS  = $(FILES:.c=.obj)
  33.  
  34. all: $(PROJ).exe
  35.  
  36. clean:
  37.     -del *.obj
  38.     -del *.exe
  39.  
  40. .SUFFIXES: .obj .c
  41.  
  42. codes.obj : codes.c xmalloc.h md5.h
  43. os2os.obj : os2os.c xmalloc.h common.h
  44. getopt.obj : getopt.c
  45. string.obj : string.c
  46. xmalloc.obj : xmalloc.c
  47. md5c.obj : md5c.c md5.h
  48. os2pk.obj : os2pk.c version.h xmalloc.h
  49. encode.obj : encode.c
  50. magic.obj : magic.c
  51.  
  52. $(PROJ).exe : $(OBJS)
  53.     $(CC) $(EXEFLAG) $(PROJ).exe $(LINKFLAGS) $(OBJS)
  54.  
  55. .c.obj :
  56.     $(CC) -c $(CCFLAGS) $*.c
  57.