home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / os2 / hpgl312.zip / ATARI.MAK < prev    next >
Makefile  |  1993-04-18  |  4KB  |  126 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 ATARI versions of hp2xx
  23. #
  24.  
  25. # CC and OPTIONS set for gcc, but any ANSI-C compiler should work.
  26. # For a non-gcc compiler, simply set OPTIONS = -O (to start with)
  27. CC    = gcc
  28. OPTIONS    = -O2 -fomit-frame-pointer -Wall
  29.  
  30. LDFLAGS    =            # link flags
  31. INCDIR    =            # additional dir with include files
  32. LIBS    = -lm            # libraries to be linked
  33. GEMLIB    = -lgem            # GEM library.
  34.  
  35.  
  36. # There are two versions available which you select by un-commenting
  37. # three lines and commenting out another three lines just below this
  38. # text. Remember to EITHER comment out the standard version OR the other.
  39.  
  40. # Standard version:
  41.  
  42. CFLAGS    = -DATARI $(INCDIR) $(OPTIONS)        # compile flags
  43. EX_SRC    =                    # extra sources
  44. EX_OBJ    =                    # extra objects
  45.  
  46. # Extended version, including modes PIC and PAC:
  47. # Note: You'll need files to_pic.c and to_pac.c from ../extras
  48.  
  49. # CFLAGS    = -DATARI -DPIC_PAC $(INCDIR) $(OPTIONS)
  50. # EX_SRC    = to_pic.c to_pac.c
  51. # EX_OBJ    = to_pic.o to_pac.o
  52.  
  53.  
  54. # No user-serviceable part below!
  55. #############################################################################
  56.  
  57. COMMON_INCS    = hp2xx.h bresnham.h
  58. ALL_INCS    = $(COMMON_INCS) chardraw.h charset0.h getopt.h x11.h ilbm.h iff.h
  59.  
  60.  
  61. # $(SRCS) NOT USED YET:
  62. SRCS    = hp2xx.c hpgl.c picbuf.c bresnham.c chardraw.c getopt.c getopt1.c \
  63.       $(ALL_INCS)\
  64.       to_mf.c to_pcx.c to_pcl.c to_eps.c to_img.c to_pbm.c \
  65.       to_atari.c $(EX_SRC)
  66.  
  67. OBJS    = hp2xx.o hpgl.o picbuf.o bresnham.o chardraw.o getopt.o getopt1.o \
  68.       to_mf.o to_pcx.o to_pcl.o to_eps.o to_img.o to_pbm.o \
  69.       to_atari.o $(EX_OBJ)
  70.  
  71. PROGRAM    = hp2xx.ttp
  72.  
  73.  
  74. #########################################################################
  75. #                                    #
  76. #             Implicit Rules                    #
  77. #                                    #
  78. #########################################################################
  79.  
  80. all: $(OBJS)
  81.     $(CC) $(LDFLAGS) $(OBJS) $(GEMLIB) $(LIBS) -o $(PROGRAM)
  82.  
  83.  
  84. .c.o:    $< $(COMMON_INCS)
  85.     $(CC) -c $(CFLAGS) $<
  86.  
  87.  
  88. #########################################################################
  89. #                                    #
  90. #             Explicit Rules                    #
  91. #                                    #
  92. #########################################################################
  93.  
  94. bresnham.o:    $< bresnham.h
  95.  
  96. chardraw.o:    $< $(COMMON_INCS) chardraw.h charset0.h
  97.  
  98. getopt.o:    $< getopt.h
  99.  
  100. getopt1.o:    $< getopt.h
  101.  
  102. hp2xx.o:    $< $(COMMON_INCS) getopt.h
  103.  
  104. hpgl.o:        $< $(COMMON_INCS) chardraw.h
  105.  
  106. ilbm.o:        $< $(COMMON_INCS) ilbm.h iff.h
  107.  
  108. to_x11.o:    $< $(COMMON_INCS) x11.h
  109.  
  110. #########################################################################
  111.  
  112. clean:
  113.         rm -f *.o core a.out
  114.  
  115. veryclean: clean
  116.         rm -i $(PROGRAM)
  117.  
  118. # Suggestion for installation:
  119. # Un-comment if desired
  120. #
  121. #install:    hp2xx ../doc/hp2xx.1
  122. #        strip hp2xx
  123. #        install -m 755 hp2xx /usr/local/bin
  124. #        install -m 644 hp2xx.1 /usr/man/local/man1
  125.  
  126.