File: makefile.static

package info (click to toggle)
siscone 3.0.5-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,748 kB
  • sloc: cpp: 5,012; sh: 4,163; makefile: 94
file content (60 lines) | stat: -rw-r--r-- 1,234 bytes parent folder | download | duplicates (5)
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
CC          = g++
OUT         = siscone
OUT_AREA    = area
OUT_TEST    = test
OUT_TIMES   = times
OUT_SAMPLE  = sample
OUT_SPHERE  = spherical
CFLAGS      = -Wall -g -O3 -ffast-math

LDFLAGS     = -lsiscone -lm

OBJS_MAIN   = options.o main.o
OBJS_AREA   = options.o area.o
OBJS_TEST   = test.o
OBJS_TIMES  = times.o
OBJS_SAMPLE = sample.o
OBJS_SPHERE = spherical.o

OBJS_ALL = options.o main.o area.o sample.o test.o times.o spherical.o
SRCS = $(patsubst %.o,%.cpp,$(OBJS_ALL))


%.o: %.cpp %.h
	$(CC) -c $(CFLAGS) $<

%.o: %.cpp
	$(CC) -c $(CFLAGS) $<

all: $(OUT) area sample test times spherical

$(OUT): $(OBJS_MAIN)
	$(CC) -o $(OUT) $(OBJS_MAIN) $(LDFLAGS)

area: $(OBJS_AREA)
	$(CC) -o $(OUT_AREA) $(OBJS_AREA) $(LDFLAGS)

test: $(OBJS_TEST)
	$(CC) -o $(OUT_TEST) $(OBJS_TEST) $(LDFLAGS)

times: $(OBJS_TIMES)
	$(CC) -o $(OUT_TIMES) $(OBJS_TIMES) $(LDFLAGS)

sample: $(OBJS_SAMPLE)
	$(CC) -o $(OUT_SAMPLE) $(OBJS_SAMPLE) $(LDFLAGS)

spherical: $(OBJS_SPHERE)
	$(CC) -o $(OUT_SPHERE) $(OBJS_SPHERE) -lsiscone_spherical $(LDFLAGS)

.PHONY: clean

clean:
	rm -f *.o *~ $(OUT) area sample test times spherical


depend:
	makedepend -I.. -Y -f makefile.static --   -- $(SRCS)
# DO NOT DELETE

options.o: options.h
main.o: options.h