Debian Codegraph @

wrappers/tcl/Makefile

raw
1 #
2 # Tcl Setup.in auto-generated during Ifeffit build
3 # This file may need some modifications, but should give
4 # a good guess for how to build the Ifeffit extension.
5 #
6 #== Ifeffit build configuration:
7 # LIB_IFF = ifeffit library
8 # LIB_PLT = PGPLOT libraries
9 # LIB_F77 = Fortran libraries
10 # LIB_X11 = X Libaries
11 # INC_IFF = location of ifeffit.h
12 LIB_IFF = -L/usr/local/lib -lifeffit
13 LIB_PLT = -L/usr/local/pgplot -lpgplot -L/usr/X11R6/lib -lX11
14 LIB_F77 = -lg2c -lm -L/usr/lib/gcc-lib/i386-redhat-linux/2.96 -L/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../.. -lm
15 INC_IFF = -I/usr/local/include
16 #==
17 LIB_IFF = -L../../src/lib -lifeffit
18 INC_IFF = -I../../src/lib
19 CC = gcc
20 CFLAGS = -g -O2
21 LDFLAGS =
22 #
23 # Makefile for the Ifeffit extension to tcl
24 # location of Tcl/Tk libraries
25 LIB_TK = -L/usr/lib -ltcl -ltk
26 # location of tcl
27 TCL = tcl
28
29 #
30 # how to compile C code to an object file for dynamic loading
31 SHARE_FLAG = -fpic
32 COMPILE = $(CC) $(SHARE_FLAG) $(CFLAGS) -c -I../../src/lib
33 LD = $(CC) -shared
34
35 LIBS = $(LIB_IFF) $(LIB_PLT) $(LIB_F77) $(LIB_TK) $(LIB_X11)
36 default: ifeffit_tcl.so
37
38 .PHONY: clean
39
40 ifeffit_tcl.so: ifeffit_wrap.o
41 $(LD) ifeffit_wrap.o $(LIBS) -o ifeffit_tcl.so
42
43 ifeffit_wrap.o: ifeffit_wrap.c
44 $(COMPILE) ifeffit_wrap.c -o ifeffit_wrap.o
45
46 test: ifeffit_tcl.so
47 $(TCL) test.tcl
48
49 clean:
50 rm ifeffit_wrap.o ifeffit_tcl.so