home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / bin / p205.zip / exesrc / makefile < prev    next >
Makefile  |  1994-12-18  |  2KB  |  77 lines

  1. ###############################################################################
  2. #                                                                             #
  3. #                  Makefile for P.EXE.                             #
  4. #                                                                             #
  5. #           Copyright (c) 1994 by Jyrki Salmi <jytasa@jyu.fi>              #
  6. #      You may modify, recompile and distribute this file freely.          #
  7. #                                                                             #
  8. #               !! NOTE: GNU MAKE IS REQUIRED !!                       #
  9. #                                                                             #
  10. ###############################################################################
  11.  
  12. # Define the compiler you want to use.
  13. #
  14. # GCC for EMX/GCC
  15. #
  16. # ICC for IBM's Cset++
  17.  
  18. COMPILER = GCC
  19. #COMPILER = ICC
  20.  
  21. %.obj : %.c
  22.     $(CC) $(CFLAGS) $<
  23.  
  24. SRCS = \
  25. brw.c \
  26. callback.c \
  27. common.c \
  28. dir.c \
  29. error.c \
  30. global.c \
  31. p.c \
  32. p_dll.c \
  33. tcpipapi.c \
  34. tl.c
  35.  
  36. OBJS = $(SRCS:.c=.obj)
  37. LIBS =
  38. DEFS = p.def
  39.  
  40. ifeq ($(COMPILER), GCC)
  41. CC = gcc
  42. CFLAGS = -Zomf -Zsys -Wall -c -O2
  43. LD = gcc
  44. LDFLAGS = -Zomf -Zsys -s -o p.exe $(OBJS) $(DEFS)
  45. endif
  46.  
  47. ifeq ($(COMPILER), ICC)
  48. CC = icc
  49. CFLAGS = /Q /O /C
  50. LD = link386
  51. LDFLAGS = /nol $(OBJS), p.exe, nul, $(LIBS) os2386.lib dde4sbs.lib, $(DEFS)
  52. endif
  53.  
  54. p.exe: $(OBJS) $(DEFS)
  55.     $(LD) $(LDFLAGS)
  56.     rc p
  57.  
  58. depend:
  59.     makedepend -o.obj $(SRCS)
  60.  
  61. $(OBJS): makefile
  62.  
  63. # DO NOT DELETE THIS LINE -- make depend depends on it.
  64.  
  65. brw.obj: typedefs.h brw.h
  66. callback.obj: typedefs.h p.h callback.h common.h brw.h error.h global.h tl.h
  67. callback.obj: modules.h
  68. common.obj: typedefs.h common.h error.h modules.h global.h brw.h tl.h p.h
  69. dir.obj: typedefs.h dir.h
  70. error.obj: typedefs.h errmsgs.h tcpipapi.h
  71. global.obj: typedefs.h tl.h brw.h p.h
  72. p.obj: typedefs.h p.h callback.h p_dll.h tcpipapi.h global.h brw.h tl.h
  73. p.obj: common.h usage.h
  74. p_dll.obj: typedefs.h common.h p.h p_dll.h error.h modules.h
  75. tcpipapi.obj: p.h typedefs.h tcpipapi.h error.h modules.h
  76. tl.obj: typedefs.h common.h dir.h tl.h global.h brw.h p.h
  77.