File: Makefile.win32

package info (click to toggle)
easychem 0.6-5
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 936 kB
  • ctags: 518
  • sloc: ansic: 8,993; sh: 2,348; xml: 83; makefile: 68
file content (56 lines) | stat: -rw-r--r-- 1,737 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
# The C compiler
CC=gcc -I/mingw/include -L/mingw/lib


# All GTK flags and librairies
GTK_FLAGS=-I/mingw/include/gtk-2.0 -I/mingw/include/glib-2.0 -I/mingw/include/glib-2.0/glib -I/mingw/lib/glib-2.0/include -I/mingw/lib/gtk-2.0/include -I/mingw/include/pango-1.0  -I/mingw/include/atk-1.0
GTK_LIBS=-L/gtk/lib -lgtk-win32-2.0 -lgdk-win32-2.0 -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lpango-1.0


# Optimisation and warning flags
C_FLAGS=-w -O2 -std=c99 -mms-bitfields -mwindows -DWIN32



# 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

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

clean: FORCE
	-cd graph; make clean
	-cd postscript; 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

# This is used to force an update
FORCE: