File: Makefile

package info (click to toggle)
pmidi 1.4.1-2.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 244 kB
  • ctags: 637
  • sloc: ansic: 2,908; makefile: 70
file content (41 lines) | stat: -rw-r--r-- 987 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


TOP = .
include $(TOP)/make.conf

CFLAGS = $(COPTS) $(INCLUDES) $(GLIBFLAGS)
LIBS = $(ASOUND) $(DBMALLOC) $(GLIB)

OBJS = pmidi.o midiread.o seqlib.o seqmidi.o \
	except.o elements.o mdutil.o $(GLIBOBJ)


# Build all the targets.
#
all: $(OBJS)
	$(CC) -o pmidi $(CFLAGS) $(OBJS) $(LIBS)
	
install: all
	$(INSTALL) pmidi $(INSTDIR)

# Remove all object files and exectutables
#
clean:
	rm -f pmidi $(OBJS) core a.out

# Remove all generated and built files.
#
clobber: clean

elements.o: elements.c glib.h elements.h except.h intl.h md.h
except.o: except.c glib.h elements.h except.h intl.h \
 /usr/include/stdio.h
glib.o: glib.c glib.h
mdutil.o: mdutil.c glib.h elements.h except.h intl.h md.h
midiread.o: midiread.c glib.h elements.h except.h intl.h midi.h
pmidi.o: pmidi.c glib.h elements.h except.h intl.h seqlib.h md.h \
 midi.h
seqlib.o: seqlib.c glib.h elements.h except.h intl.h seqlib.h \
 seqpriv.h
seqmidi.o: seqmidi.c glib.h elements.h except.h intl.h seqlib.h \
 seqpriv.h