home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / os2 / hpgl312.zip / MAKEFILE < prev    next >
Text File  |  1993-05-10  |  3KB  |  96 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 OS/2 2.x & emx 0.8f  version of hp2xx
  23. #
  24. CC    = gcc
  25. OPTIONS    = -O2 -ansi -fstrength-reduce -finline-functions -Wall
  26. LIBS    = -lgr -lm
  27. EMXBIN    = y:/emx/bin
  28.  
  29. # There are two versions available which you select by un-commenting
  30. # three lines and commenting out another three lines just below this
  31. # text. Remember to EITHER comment out the standard version OR the other.
  32.  
  33. # Standard version:
  34.  
  35. CFLAGS    = -c -DOS2 -DHAS_OS2_PM
  36. EX_SRC    =
  37. EX_OBJ    =
  38.  
  39. # Extended version, including modes PIC and PAC:
  40. # Note: You'll need files to_pic.c and to_pac.c from ../extras
  41.  
  42. # CFLAGS    = -c -DOS2 -DPIC_PAC  -DHAS_OS2_PM
  43. # EX_SRC    = to_pic.c to_pac.c
  44. # EX_OBJ    = to_pic.o to_pac.o
  45.  
  46.  
  47. # No user-serviceable part below!
  48. #############################################################################
  49.  
  50. #
  51. # During tests of both PM and full-screen previewer, the lines below
  52. # allow for easy switching:
  53. #
  54.  
  55. LIBS    = -los2 # -l16bit
  56. OS2DISP        = to_pm
  57. OS2DISPFLAG    = -p    # -f (full screen), -p (PM), -w (windowed)
  58.  
  59.  
  60.  
  61.  
  62. INCS    = hp2xx.h bresnham.h chardraw.h charset0.h getopt.h
  63.  
  64. SRCS    = hp2xx.c hpgl.c picbuf.c bresnham.c chardraw.c getopt.c getopt1.c \
  65.       $(INCS)\
  66.       to_mf.c to_pcx.c to_pcl.c to_eps.c to_img.c $(OS2DISP).c to_pbm.c \
  67.       $(EX_SRC)
  68.  
  69. OBJS    = hp2xx.o hpgl.o picbuf.o bresnham.o chardraw.o getopt.o getopt1.o \
  70.       to_mf.o to_pcx.o to_pcl.o to_eps.o to_img.o $(OS2DISP).o to_pbm.o \
  71.       $(EX_OBJ)
  72.  
  73. PROGRAM    = hp2xx
  74.  
  75.  
  76. #########################################################################
  77. #                                    #
  78. #             Implicit Rules                    #
  79. #                                    #
  80. #########################################################################
  81.  
  82. .c.o:    #$<.c $(INCS)
  83.     $(CC) $(CFLAGS) $(OPTIONS) $<
  84.  
  85. #########################################################################
  86.  
  87. all:    $(PROGRAM)
  88.     emxbind $(OS2DISPFLAG) $(EMXBIN)/emxl.exe $(PROGRAM)
  89.  
  90. $(PROGRAM): $(OBJS)
  91.     $(CC) $(OBJS) $(LIBS) -o $(PROGRAM)
  92.  
  93. clean:        
  94.     -rm -f *.o hp2xx core a.out
  95.  
  96.