File: Makefile

package info (click to toggle)
alsadriver 0.2.0-pre8-3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 2,808 kB
  • ctags: 6,550
  • sloc: ansic: 43,490; sh: 916; makefile: 759; perl: 54
file content (97 lines) | stat: -rw-r--r-- 1,996 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#
# Makefile for ALSA Sequencer test programs
# Copyright (c) 1998 by Frank van de Pol <F.K.W.van.de.Pol@inter.nl.net>
#

# let this point to the directory you ALSA driver source 
TOPDIR  = ../..

include $(TOPDIR)/Makefile.conf

TARGETS = $(SNDVERSIONS) \
	opn2 opn3 opn4\
	usertest1 usertest2 usertest3 \
	readtime \
	snd-client1.o \
	snd-client_midi.o \
	snd-client_midi2.o \
	playmidi

include $(TOPDIR)/Rules.make

all: $(TARGETS) tags
	@echo
	@echo "ALSA sequencer test programs were sucessfully compiled."
	@echo

include $(TOPDIR)/Rules1.make

gcompile: $(TARGETS)


opn2: 	opn2.c
	cc $(COPTS) $(INCLUDE) -o $@ opn2.c

opn3: 	opn3.c
	cc $(COPTS) $(INCLUDE) -o $@ opn3.c

opn4: 	opn4.c
	cc $(COPTS) $(INCLUDE) -o $@ opn4.c

usertest1: 	usertest1.c
	cc $(COPTS) $(INCLUDE) -o $@ usertest1.c

usertest2: 	usertest2.c
	cc $(COPTS) $(INCLUDE)  -o $@ usertest2.c

usertest3: 	usertest3.c
	cc $(COPTS) $(INCLUDE)  -o $@ usertest3.c

readtime: 	readtime.c
	cc $(COPTS) $(INCLUDE)  -o $@ readtime.c -lcurses

snd-client1.o: .depend $(SNDVERSIONS) kernel-client1.o
	$(LINKER) -o $@ kernel-client1.o

snd-client_midi.o: .depend $(SNDVERSIONS) kernel-client_midi.o
	$(LINKER) -o $@ kernel-client_midi.o

snd-client_midi2.o: .depend $(SNDVERSIONS) kernel-client_midi2.o
	$(LINKER) -o $@ kernel-client_midi2.o

playmidi:	playmidi.c midifile.c midifile.h
	cc -O2 $(INCLUDE) -o $@ playmidi.c midifile.c

ARCH_SOURCES = \
	Makefile\
	*.c *.h *.3

snapshot: 
	tar czvf ../../../archive/snapshot-test-`date +%d%b%Y`.tar.gz $(ARCH_SOURCES)
	ls -l  ../../../archive/snapshot-*-`date +%d%b%Y`.tar.gz

ci:
	ci -l $(ARCH_SOURCES)


tags:	*.c
	ctags *.c

clean:
	rm -f .depend *.o *.orig snd.map snd.map? *.old *~
	rm -f core $(SNDVERSIONS) $(SYMFILES)
	rm -f opn2 opn3 opn4 playmidi readtime usertest1 usertest2 usertest3

.depend: $(SYMFILES)
	$(CPP) $(COPTS) $(INCLUDE) *.c > .depend

dep:	.depend

dummy:

#
# include a dependency file if one exists
#
ifeq (.depend,$(wildcard .depend))
include .depend
endif