aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 14ae460ca947a2f23f1c3ebb7dedb8e6ed206a8b (plain)
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
include Makefile.config

PDP_DISTRO = $(PDP_DIR)/../pdp-$(PDP_VERSION)
PDP_TARBALL = $(PDP_DISTRO).tar.gz
PDP_WWWDIR = /net/zwizwa/www/zwizwa.fartit.com/pd/pdp
PDP_WWWTESTDIR = /net/zwizwa/www/zwizwa.fartit.com/pd/pdp/test

all: pdp.pd_linux

include Makefile.$(PDP_TARGET)

pdp_all:
	make -C system
	make -C modules

buildclean:
	make -C include clean
	make -C system clean
	make -C modules clean

clean: buildclean
	rm -f pdp.pd_linux
	rm -f *~

tags:
	etags --language=auto include/*.h system/mmx/*.s system/*.c modules/*.c

tagsclean:
	rm -f TAGS

distro: clean
	rm -rf $(PDP_DISTRO)
	mkdir $(PDP_DISTRO)
	cp -av $(PDP_DIR)/*  $(PDP_DISTRO)
	#strip --strip-unneeded $(PDP_DISTRO)/pdp.pd_linux
	rm -rf $(PDP_DISTRO)/CVS
	rm -rf $(PDP_DISTRO)/*/CVS
	rm -rf $(PDP_DISTRO)/*/*/CVS
	rm -rf $(PDP_DISTRO)/*/*.o
	rm -rf $(PDP_DISTRO)/*/TAGS
	cd $(PDP_DISTRO)/.. && tar vczf pdp-$(PDP_VERSION).tar.gz pdp-$(PDP_VERSION)
	rm -rf $(PDP_DISTRO)

www:	$(PDP_TARBALL) 
	cp -av  $(PDP_TARBALL) $(PDP_WWWDIR)
	cp -av  $(PDP_DIR)/README $(PDP_WWWDIR)/README.txt

www-test:$(PDP_TARBALL) 
	cp -av  $(PDP_TARBALL) $(PDP_WWWTESTDIR)