File: Makefile

package info (click to toggle)
grafix 1.6-5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,156 kB
  • ctags: 1,962
  • sloc: ansic: 20,183; makefile: 186; sh: 3
file content (51 lines) | stat: -rw-r--r-- 1,299 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
44
45
46
47
48
49
50
51
# This is a Makefile for the examples

DEMOS =    hello win-demo edit-demo file-browser cursors calc \
	 font-browser \
	pal-demo lat-demo lat2demo one-dim two-dim clock-demo three-dim \
	replay mandel earth dir-tree

MORE_DEMOS = earth dir-tree

LIBS = -lgrafix -L/usr/X11R6/lib -lX11
INC  = -I/usr/include/grafix
CFLAGS = -O3 -Wall -fpermissive
CC = g++


all:  demos demorun

demos:  $(DEMOS) 

# runs all the demos :
demorun: $(DEMOS)
	@for demo in $(DEMOS); do (echo "running $$demo"; exec ./$$demo;); done

earth:  earth.o mapdata.o
	$(CC)  -o  earth earth.o mapdata.o $(LIBS) $(INC) 	

dir-tree: dir-tree.o tree.o 
	$(CC)  -o  dir-tree dir-tree.o tree.o $(LIBS) $(INC) 	

font-browser: font-browser.o font-selector.o
	$(CC)  -o  font-browser font-browser.o font-selector.o $(LIBS) $(INC)

one-dim: 	one-dim.o solver.o 
	$(CC)  -o  one-dim one-dim.o solver.o  $(LIBS) $(INC)
two-dim: 	two-dim.o smolark.o 
	$(CC)  -o  two-dim two-dim.o smolark.o   $(LIBS) $(INC)

three-dim: 	three-dim.o wave.o animator.o 
	$(CC)  -o   three-dim three-dim.o wave.o animator.o   $(LIBS) $(INC)

replay:       replay.o  animator.o 
	$(CC)  -o   replay replay.o animator.o   $(LIBS) $(INC)

%: %.c
	$(CC) $(CFLAGS) -o $@ $^ $(LIBS) $(INC)

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

clean:
	-rm $(DEMOS) *.o