"Fossies" - the Fresh Open Source Software Archive

Member "hp2xx-3.4.4/makes/atari.mak" (21 Jun 2003, 3915 Bytes) of package /linux/misc/old/hp2xx-3.4.4.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Make source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 ###########################################################################
    2 #    Copyright (c) 1991 - 1994 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 murphy.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_vec.c to_pcx.c to_pcl.c to_eps.c to_img.c to_pbm.c to_rgip.c \
   65       to_atari.c std_main.c fillpoly.c pendef.c lindef.c murphy.c $(EX_SRC)
   66 
   67 OBJS    = hp2xx.o hpgl.o picbuf.o bresnham.o chardraw.o getopt.o getopt1.o \
   68       to_vec.o to_pcx.o to_pcl.o to_eps.o to_img.o to_pbm.o to_rgip.o \
   69       to_atari.o std_main.o fillpoly.o pendef.o lindef.o murphy.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 murphy.o:   $< murphy.h
   97 
   98 chardraw.o: $< $(COMMON_INCS) chardraw.h charset0.h
   99 
  100 getopt.o:   $< getopt.h
  101 
  102 getopt1.o:  $< getopt.h
  103 
  104 hp2xx.o:    $< $(COMMON_INCS) getopt.h
  105 
  106 hpgl.o:     $< $(COMMON_INCS) chardraw.h
  107 
  108 ilbm.o:     $< $(COMMON_INCS) ilbm.h iff.h
  109 
  110 to_x11.o:   $< $(COMMON_INCS) x11.h
  111 
  112 #########################################################################
  113 
  114 clean:
  115         rm -f *.o core a.out
  116 
  117 veryclean: clean
  118         rm -i $(PROGRAM)
  119 
  120 # Suggestion for installation:
  121 # Un-comment if desired
  122 #
  123 #install:   hp2xx ../doc/hp2xx.1
  124 #       strip hp2xx
  125 #       install -m 755 hp2xx /usr/local/bin
  126 #       install -m 644 hp2xx.1 /usr/man/local/man1
  127