File: Makefile.sgi32

package info (click to toggle)
chemtool 1.5-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,036 kB
  • ctags: 2,117
  • sloc: ansic: 31,960; pascal: 825; sh: 153; makefile: 90
file content (43 lines) | stat: -rw-r--r-- 1,023 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
PREFIX=/usr/local
LOCALEDIR=/usr/share/locale
GTKCONFIGFLAGS=-I/usr/freeware/include/gtk-1.2 \
-I/usr/freeware/include/glib-1.2 \
-I/usr/freeware/lib32/glib/include
CFLAGS=-mabi=n32 -fno-builtin -O2 -Wall -Wunused ${GTKCONFIGFLAGS} \
-DMENU  -DDISABLE_NLS
CC=gcc
CP=/bin/cp
RM=/bin/rm -f
MAKE=gmake

SRCS = main.c chemproc.c graph.c draw.c inout.c 
OBJS = main.o chemproc.o graph.o draw.o inout.o 

GTKCONFIGLIBS=-mabi=n32 -L/usr/freeware/lib32 \
-lgtk -lgdk -lgmodule -lglib \
-lXi -lXext -lX11 -lm

SYS_LIBRARIES = ${GTKCONFIGLIBS} -lm

all: chemtool cht

default:        all

chemtool: ${OBJS}
	${CC}  ${OBJS} ${SYS_LIBRARIES} -o chemtool

cht:    src-cht/cht-1.7.c
	cd src-cht;${MAKE}

#.c.o:  
#       ${CC} ${CFLAGS} ${EXTRA_INCLUDES} -c ${SRCS}

install: chemtool src-cht/cht
	${CP} chemtool src-cht/cht ${PREFIX}/bin
	${CP} chemtool.1 ${PREFIX}/man/man1
	for L in `ls locales`; do ${CP} locales/$$L/chemtool.mo \
${LOCALEDIR}/$$L/LC_MESSAGES;done
 
clean:
	${RM} *.o *~ src-cht/*.o src-cht/*~ chemtool src-cht/cht