File: Makefile

package info (click to toggle)
oss4 4.2-build2020-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,320 kB
  • sloc: ansic: 239,151; cpp: 18,981; sh: 4,590; pascal: 3,863; asm: 1,189; makefile: 574; php: 53; xml: 46
file content (31 lines) | stat: -rw-r--r-- 641 bytes parent folder | download | duplicates (4)
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
CC = cc
CFLAGS = -g
LIBOBJS	= mlib.o 
INSTALLDIR=/usr/local/bin
INSTALLLIB=/usr/lib
.PREFIXES:	.o .c

# Uncomment the following lines if you want to use OSSlib.
# Look at the OSSlib subdirectory for more info about OSSlib.
# NOTE! OSS version 3.8-beta2 or later is required for OSSlib.
OSSDEFINES=-DOSSLIB
OSSLIBS=-lOSSlib

all : ossmplay

install: ossmplay
	cp ossmplay $(INSTALLDIR)/ossmplay

ossmplay : main.o $(LIBOBJS)
	$(CC) $(CFLAGS) -o ossmplay main.o $(LIBOBJS) -L$(INSTALLLIB) $(OSSLIBS)

main.o:	mlib.h main.c
	$(CC) $(CFLAGS) $(OSSDEFINES) -c main.c

mlib.o: mlib.h

.c.o:
	$(CC) $(CFLAGS) -c $<

clean:
	rm -f *.o ossmplay core