File: makefile

package info (click to toggle)
libwn6 6.0-17
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 6,012 kB
  • ctags: 3,903
  • sloc: ansic: 45,078; makefile: 960; csh: 274; sh: 17
file content (43 lines) | stat: -rwxr-xr-x 1,148 bytes parent folder | download | duplicates (2)
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
#!gmake

CC = cc
ADDCFLAGS = -cckr

# compile everything
compile:
	cd low; $(MAKE) compile CC=$(CC) ADDCFLAGS=$(ADDCFLAGS); cd ..
	cd matrix; $(MAKE) compile CC=$(CC) ADDCFLAGS=$(ADDCFLAGS); cd ..
	cd spmat; $(MAKE) compile CC=$(CC) ADDCFLAGS=$(ADDCFLAGS); cd ..
	cd parse; $(MAKE) compile CC=$(CC) ADDCFLAGS=$(ADDCFLAGS); cd ..

# h file links
hfiles:
	set nonomatch; rm -f h/*
	cd low; $(MAKE) hfiles; cd ..
	cd matrix; $(MAKE) hfiles; cd ..
	cd spmat; $(MAKE) hfiles; cd ..
	cd parse; $(MAKE) hfiles; cd ..

# remove objects 
clean:
	cd low; $(MAKE) clean; cd ..
	cd matrix; $(MAKE) clean; cd ..
	cd spmat; $(MAKE) clean; cd ..
	cd parse; $(MAKE) clean; cd ..

# make man pages
man:
	set nonomatch; rm -f ../doc/man/*
	cd low; $(MAKE) man; cd ..
	cd matrix; $(MAKE) man; cd ..
	cd spmat; $(MAKE) man; cd ..
	cd parse; $(MAKE) man; cd ..

# make everything
all: 
	set nonomatch; rm -f ../doc/man/*
	cd low; $(MAKE) all CC=$(CC) ADDCFLAGS=$(ADDCFLAGS); cd ..
	cd matrix; $(MAKE) all CC=$(CC) ADDCFLAGS=$(ADDCFLAGS); cd ..
	cd spmat; $(MAKE) all CC=$(CC) ADDCFLAGS=$(ADDCFLAGS); cd ..
	cd parse; $(MAKE) all CC=$(CC) ADDCFLAGS=$(ADDCFLAGS); cd ..