Debian Codegraph @

debian/external_deps/fetk/sg/tools/Makefile.simple

raw
1 ### ##########################################################################
2 ### SG = < Socket Graphics >
3 ### Copyright (C) 1994-- Michael Holst
4 ###
5 ### This library is free software; you can redistribute it and/or
6 ### modify it under the terms of the GNU Lesser General Public
7 ### License as published by the Free Software Foundation; either
8 ### version 2.1 of the License, or (at your option) any later version.
9 ###
10 ### This library is distributed in the hope that it will be useful,
11 ### but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 ### Lesser General Public License for more details.
14 ###
15 ### You should have received a copy of the GNU Lesser General Public
16 ### License along with this library; if not, write to the Free Software
17 ### Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 ###
19 ### rcsid="$Id: Makefile.simple,v 1.7 2010/08/09 19:02:06 fetk Exp $"
20 ### ##########################################################################
21
22 ## ###########################################################################
23 ## File: Makefile.simple
24 ##
25 ## Purpose: Simple makefile for building FEtk tools without using autoconf.
26 ##
27 ## Notes: Edit as needed and then invoke via "make -f Makefile.simple"
28 ##
29 ## Author: Michael Holst
30 ## ###########################################################################
31
32 ARCH = powerpc-apple-darwin9.2.2
33 #ARCH = x86_64-unknown-linux-gnu
34 DMAL =
35 #DMAL = -ldmalloc
36 OSXFIX = -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
37 SYSLIB = -L/usr/X11R6/lib -L/sw/lib -lGLw -lGLU -lGL -lXm -lSM -lICE -lXaw -lXmu -lXi -lXt -lXext -lX11 -lreadline -lncurses -lm ${DMAL} ${OSXFIX}
38 #SYSLIB = -L/usr/lib64 -lGLw -lGLU -lGL -lXm -lSM -lICE -lXaw -lXmu -lXi -lXt -lXext -lX11 -lreadline -lncurses -lm ${DMAL}
39
40 HOME = /usr/people/mholst
41 FETK_INC = -I${HOME}/include
42 FETK_LIB = -L${HOME}/lib/${ARCH} -lsg -lmaloc
43
44 default : mcsg sg tilesg
45
46 main.o : main.c
47 gcc -c -g -O2 -I. ${FETK_INC} main.c
48
49 tilesg.o : tilesg.c
50 gcc -c -g -O2 -I. ${FETK_INC} tilesg.c
51
52 mcsg : main.o
53 gcc -g -O2 -o mcsg main.o ${FETK_LIB} ${SYSLIB}
54
55 sg : main.o
56 gcc -g -O2 -o sg main.o ${FETK_LIB} ${SYSLIB}
57
58 tilesg : tilesg.o
59 gcc -g -O2 -o tilesg tilesg.o ${FETK_LIB} ${SYSLIB}
60
61 setdmal :
62 dmalloc -l logfile -i 100 high
63
64 clean :
65 -rm -f *.o go io.mc hist.mcsh logfile .gdb_history mcsg sg tilesg
66