File: Makefile

package info (click to toggle)
sndobj 2.5.1-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,792 kB
  • ctags: 5,210
  • sloc: ansic: 55,029; cpp: 15,748; makefile: 177
file content (36 lines) | stat: -rwxr-xr-x 795 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
#####################################################
# SndObj v2.5 top-level Makefile
# makes the library, examples and installs                
#
######################################################

# choose either win, oss, mosx or blank (no RT)
#PLATFORM =.win
#PLATFORM =.oss
#PLATFORM =.mosx
PLATFORM =

LIBDEST = /usr/local/lib
INCDEST = /usr/local/include
MAKE = make

all: lib/libsndobj.a examples 

lib/libsndobj.a: src/*.cpp src/*.h 
	cd src; $(MAKE) -f Makefile$(PLATFORM)

examples: src/examples/*.cpp 
	cd src/examples; $(MAKE) -f Makefile$(PLATFORM) install

install: lib/libsndobj.a include/SndObj/*.h
	cp lib/libsndobj.a $(LIBDEST)
	install -d $(INCDEST)/SndObj
	install include/SndObj/*.h $(INCDEST)/SndObj

clean: 	
	rm src/*.o

cleanall: 	
	rm src/*.o
	rm lib/*
	rm bin/*