Diff of /makefile.mac [000000] .. [e19029]  Maximize  Restore

Switch to unified view

a b/makefile.mac
1
#   Panorama_Tools    -   Generate, Edit and Convert Panoramic Images
2
#   Copyright (C) 1998,1999 - Helmut Dersch  der@fh-furtwangen.de
3
#   
4
#   This program is free software; you can redistribute it and/or modify
5
#   it under the terms of the GNU General Public License as published by
6
#   the Free Software Foundation; either version 2, or (at your option)
7
#   any later version.
8
#
9
#   This program is distributed in the hope that it will be useful,
10
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
11
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
#   GNU General Public License for more details.
13
#
14
#   You should have received a copy of the GNU General Public License
15
#   along with this program; if not, write to the Free Software
16
#   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
17
#
18
# 
19
20
#############################################################################
21
22
#   All functional code and resources are located in pano12.lib
23
#   The code in the filters only translates the 68k-code-resource call
24
#   from GraphicConverter into a call to the ppc-entry function 
25
#   "filter_main" with an appropriate selector value.
26
27
#############################################################################
28
29
#        --------------   Definitions  -------------------------
30
31
Lib_Exports       =       pano12.x
32
33
PPCInc            =       panorama.h filter.h fftn.h f2c.h PixMap.h pteditor.h  ¶
34
                      ptutils.h sys_mac.h version.h
35
36
PPCSrc            =       filter.c parser.c sys_mac.c  correct.c perspect.c ¶
37
                        adjust.c  remap.c lmdif.c  file.c ¶
38
                      math.c pan.c PTDialogs.c fftn.c fourier.c resample.c ¶
39
                      shell_mac.c optimize.c morpher.c Triangulate.c png.c    ¶
40
                      seamer.c ptpicker.c pteditor.c seamer_.c    ¶
41
                      tiff.c pict.c jpeg.c PixMap.c
42
43
OtherSrc      =       filter.r Gimpmain.c bmp.c pano12.x pano12.def ppm.c resource.h ¶
44
                      sys_X11.c sys_X11.h sys_win.c sys_win.h sys_ansi.h sys_ansi.c ¶
45
                      
46
47
48
PPCObjs       =       filter.x.o parser.x.o sys_mac.x.o  correct.x.o perspect.x.o ¶
49
                        adjust.x.o  remap.x.o lmdif.x.o  file.x.o ¶
50
                      math.x.o pan.x.o PTDialogs.x.o fftn.x.o fourier.x.o resample.x.o ¶
51
                      shell_mac.x.o optimize.x.o morpher.x.o Triangulate.x.o png.x.o  ¶
52
                      seamer.x.o ptpicker.x.o pteditor.x.o tiff.x.o pict.x.o jpeg.x.o PixMap.x.o
53
                      
54
FORMAT_LIBS   =       ::jpeg-6:libjpeg.a              ¶
55
                      ::tiff-v3.4:libtiff:libtiff.o   ¶
56
                      ::libpng-0.89c:libpng.a         ¶
57
                      "{SharedLibraries}"QuickTimeLib 
58
59
60
                      
61
PPC_Libraries     =       "{SharedLibraries}"InterfaceLib ¶
62
                      "{SharedLibraries}"StdCLib      ¶
63
                      "{PPCLibraries}"StdCRuntime.o   ¶
64
                      "{PPCLibraries}"PPCCRuntime.o   ¶
65
                      "{SharedLibraries}"MathLib      ¶
66
                      "{SharedLibraries}"ColorSyncLib ¶
67
                      "{PPCLibraries}"MrCPlusLib.o    ¶
68
                      "{SharedLibraries}"JNILib       ¶
69
                      {FORMAT_LIBS}                   
70
71
               
72
##############################################################################
73
74
#         --------------   Build Rules  -------------------------
75
76
.x.o Ä .c
77
  MrC -d Macintosh -align mac68k -i ::jpeg-6 -i ::tiff-v3.4:libtiff -i ::libpng-0.89c -i :: -i ::libpng-0.89c:zlib-1.0.4 {default}.c -o {default}.x.o 
78
79
# MrC -d Macintosh  {default}.c -o {default}.x.o 
80
81
82
# This shared library contains all functional code and resources
83
84
pano12.lib ÄÄ {PPCObjs}  filter.r Makefile {Lib_Exports} {PPC_Libraries}
85
  PPCLink -xm s -init __my_initialize -term __my_terminate ¶
86
  -export  `ConvertExportList {Lib_Exports}`  ¶
87
  {PPCObjs}   {PPC_Libraries}  -o {targ}                  # Create library 
88
  MergeFragment -n pano12.lib -c -t pwpc -x {targ}        # use MergeFragment to create a library cfrg
89
  Rez  -d SystemSevenOrLater=1 -a filter.r -o {Targ}      # Stuff all resources into library
90
  setfile -c '????' -t 'shlb' {Targ}
91
92
93
Backup  Ä
94
  Duplicate -y Makefile {PPCInc}  {PPCSrc} {OtherSrc} :Backup:
95
96
97
clean Ä
98
  Delete {PPCObjs} pano12.lib
99
100