File: Makefile.macosx

package info (click to toggle)
easychem 0.6-9
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 1,652 kB
  • sloc: ansic: 9,019; makefile: 25
file content (68 lines) | stat: -rw-r--r-- 1,889 bytes parent folder | download | duplicates (6)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# The C compiler
CC=gcc

# The following line must be uncommented if you want to specify a place
# where the 'gs' (or 'pstoedit') program is.

#C_FLAGS="$(C_FLAGS) -DGS_PATH=/opt/bin"
#C_FLAGS="$(C_FLAGS) -DPSTOEDIT_PATH=/opt/bin"

# Here we define the prefix where EasyChem will be installed
PREFIX=/usr/local

# Optimisation and warning flags
C_FLAGS=-Wall -W -Wpointer-arith -O2 -pedantic -std=c99 -DUNIX -DI18N -DPREFIX=\"$(PREFIX)\" -DMACOSX

# GTK flags and librairies
GTK_FLAGS=`pkg-config --cflags gtk+-2.0`
GTK_LIBS=`pkg-config --libs gtk+-2.0`



# From now is the technical part of this Makefile which you shouldn't
# really need to change...

# The list of important files
OBJECTS=auxi.o bonds.o easychem.o export.o dialogs.o detect.o library.o drawing.o

all: easychem po/

easychem: postscript/ graph/ $(OBJECTS)
	$(CC) -o easychem $(OBJECTS) $(GTK_LIBS) $(C_FLAGS) -framework Carbon
	strip easychem

clean: FORCE
	-cd graph; make clean
	-cd postscript; make clean
	-cd po; make clean
	-rm $(OBJECTS) easychem

export.o: export.c common.h bonds.h postscript/
	$(CC) $(GTK_FLAGS) $(C_FLAGS) -c export.c
bonds.o: bonds.c common.h bonds.h
	$(CC) $(GTK_FLAGS) $(C_FLAGS) -c bonds.c
easychem.o: easychem.c common.h bonds.h export.h drawing.h
	$(CC) $(GTK_FLAGS) $(C_FLAGS) -c easychem.c
auxi.o: auxi.c common.h auxi.h
	$(CC) $(GTK_FLAGS) $(C_FLAGS) -c auxi.c
library.o: library.c common.h library.h
	$(CC) $(GTK_FLAGS) $(C_FLAGS) -c library.c
drawing.o: drawing.c common.h drawing.h
	$(CC) $(GTK_FLAGS) $(C_FLAGS) -c drawing.c
dialogs.o: dialogs.c common.h dialogs.h graph/
	$(CC) $(GTK_FLAGS) $(C_FLAGS) -c dialogs.c
detect.o: detect.c common.h detect.h
	$(CC) $(GTK_FLAGS) $(C_FLAGS) -c detect.c

# The rules for subdirectories
graph/: FORCE
	cd graph; make all

postscript/: FORCE
	cd postscript; make all

po/: FORCE
	cd po; make all

# This is used to force an update
FORCE: