home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / os2 / hpgl312.zip / DOSDJGPP.MAK < prev    next >
Makefile  |  1993-04-18  |  3KB  |  131 lines

  1. ###########################################################################
  2. #    Copyright (c) 1991 - 1993 Heinz W. Werntges.  All rights reserved.
  3. #    Distributed by Free Software Foundation, Inc.
  4. #
  5. # This file is part of HP2xx.
  6. #
  7. # HP2xx is distributed in the hope that it will be useful, but
  8. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  9. # to anyone for the consequences of using it or for whether it serves any
  10. # particular purpose or works at all, unless he says so in writing.  Refer
  11. # to the GNU General Public License, Version 2 or later, for full details
  12. #
  13. # Everyone is granted permission to copy, modify and redistribute
  14. # HP2xx, but only under the conditions described in the GNU General Public
  15. # License.  A copy of this license is supposed to have been
  16. # given to you along with HP2xx so you can know your rights and
  17. # responsibilities.  It should be in a file named COPYING.  Among other
  18. # things, the copyright notice and this notice must be preserved on all
  19. # copies.
  20. ###########################################################################
  21. #
  22. # Makefile for DJ Delorie's GO32 DOS extender + GCC version of hp2xx
  23. #
  24. CC    = gcc
  25. OPTIONS    = -g -O2 -ansi -fstrength-reduce -finline-functions -Wall
  26. LIBS    = -lgr -lm
  27.  
  28. # There are two versions available which you select by un-commenting
  29. # three lines and commenting out another three lines just below this
  30. # text. Remember to EITHER comment out the standard version OR the other.
  31.  
  32. # Standard version:
  33.  
  34. CFLAGS    = -c -DDOS -DGNU -DHAS_DOS_DJGR
  35. EX_SRC    =
  36. EX_OBJ    =
  37.  
  38. # Extended version, including modes PIC and PAC:
  39. # Note: You'll need files to_pic.c and to_pac.c from ../extras
  40.  
  41. # CFLAGS    = -c -DDOS -DGNU -DHAS_DOS_DJGR -DPIC_PAC
  42. # EX_SRC    = to_pic.c to_pac.c
  43. # EX_OBJ    = pic.o pac.o
  44.  
  45.  
  46. # No user-serviceable part below!
  47. #############################################################################
  48.  
  49. SRCS    = hp2xx.c hpgl.c picbuf.c bresnham.c chardraw.c getopt.c $(INCS)\
  50.     to_mf.c to_pcx.c to_pcl.c to_eps.c to_img.c to_dj_gr.c to_pbm.c $(EX_SRC)
  51.  
  52. OBJS    = hp2xx.o hpgl.o pbuf.o bham.o cdrw.o opt.o opt1.o \
  53.     mf.o pcx.o pcl.o eps.o img.o djgr.o pbm.o $(EX_OBJS)
  54.  
  55. INCS    = hp2xx.h bresnham.h chardraw.h charset0.h getopt.h
  56.  
  57. PROGRAM    = hp2xx
  58.  
  59.  
  60. #########################################################################
  61. #                                    #
  62. #             Implicit Rules                    #
  63. #                                    #
  64. #########################################################################
  65.  
  66. all:    $(PROGRAM)386.exe
  67.  
  68. .c.o:    #$<.c $(INCS)
  69.     $(CC) $(CFLAGS) $(OPTIONS) $<
  70.  
  71. $(PROGRAM): $(OBJS)
  72.     $(CC) $(OBJS) $(LIBS) -o $(PROGRAM)
  73.  
  74. $(PROGRAM)386.exe: $(PROGRAM)
  75.     strip $(PROGRAM)
  76.     copy /b c:\djgpp\bin\stub.exe+$(PROGRAM) $(PROGRAM)386.exe
  77.  
  78.  
  79. # The following statements merely help to reduce characters within the
  80. # DOS command line to avoid DOS's stupid 128 char limit:
  81. #
  82.  
  83. pbuf.o:    picbuf.o
  84.     copy picbuf.o pbuf.o
  85.  
  86. bham.o:    bresnham.o
  87.     copy bresnham.o bham.o
  88.  
  89. cdrw.o:    chardraw.o
  90.     copy chardraw.o cdrw.o
  91.  
  92. opt.o:    getopt.o
  93.     copy getopt.o opt.o
  94.  
  95. opt1.o:    getopt1.o
  96.     copy getopt1.o opt1.o
  97.  
  98. mf.o:    to_mf.o
  99.     copy to_mf.o mf.o
  100.  
  101. pcx.o:    to_pcx.o
  102.     copy to_pcx.o pcx.o
  103.  
  104. pcl.o:    to_pcl.o
  105.     copy to_pcl.o pcl.o
  106.  
  107. eps.o:    to_eps.o
  108.     copy to_eps.o eps.o
  109.  
  110. img.o:    to_img.o
  111.     copy to_img.o img.o
  112.  
  113. djgr.o:    to_dj_gr.o
  114.     copy to_dj_gr.o djgr.o
  115.  
  116. pbm.o:    to_pbm.o
  117.     copy to_pbm.o pbm.o
  118.  
  119. pic.o:    to_pic.o
  120.     copy to_pic.o pic.o
  121.  
  122. pac.o:    to_pac.o
  123.     copy to_pac.o pac.o
  124.  
  125. #########################################################################
  126.  
  127. clean:        
  128.         rm -f *.o hp2xx core a.out
  129.  
  130.  
  131.