-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
40 lines (29 loc) · 1.18 KB
/
makefile
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
CCC=g++
CC=gcc
CFLAGS=-O3 #-g -Wall
IFLAGS=-I/sw/include
LDFLAGS=-L/sw/lib -lgmp -lpthread
all: scabble3d
scabble3d.o: scabble3d.c *.h
$(CC) $(CFLAGS) $(IFLAGS) -c scabble3d.c `pkg-config --cflags gtk+-2.0 gtkglext-1.0 gtkglext-x11-1.0`
word.o: word.c word.h
$(CC) $(CFLAGS) $(IFLAGS) -c word.c
matrix.o: matrix.c matrix.h
$(CC) $(CFLAGS) $(IFLAGS) -c matrix.c
scl_backend.o: scl_backend.c *.h
$(CC) $(CFLAGS) $(IFLAGS) -c scl_backend.c `pkg-config --cflags gtk+-2.0 gtkglext-1.0 gtkglext-x11-1.0`
triangle_and_vertex.o: triangle_and_vertex.c triangle_and_vertex.h
$(CC) $(CFLAGS) $(IFLAGS) -c triangle_and_vertex.c
.PHONY: exlp-package
exlp-package:
cd exlp-package; make
scabble3d: exlp-package scabble3d.o matrix.o word.o scl_backend.o triangle_and_vertex.o
$(CCC) $(CFLAGS) $(IFLAGS) -o scabble3d scabble3d.o matrix.o word.o \
scl_backend.o triangle_and_vertex.o \
exlp-package/*.o \
`pkg-config --cflags --libs gtk+-2.0 gtkglext-1.0 gtkglext-x11-1.0` \
$(LDFLAGS)
clean:
rm scabble3d
rm *.o
cd exlp-package; rm *.o