Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 30 lines (19 sloc) 0.738 kB
01d9918 @wgoossens Alter Makefile to build seperate objects and remove inclusion of c file
wgoossens authored
1 CFLAGS:=-O2 -Wall $(shell pkg-config --cflags openssl ao)
2 LDFLAGS:=-lm -lpthread $(shell pkg-config --libs openssl ao)
3 OBJS=socketlib.o shairport.o alac.o hairtunes.o
53d89bd @Andywebs Missing Makefile mods.
Andywebs authored
4 all: hairtunes shairport
31cf954 @bbhoss first commit
bbhoss authored
5
01d9918 @wgoossens Alter Makefile to build seperate objects and remove inclusion of c file
wgoossens authored
6 hairtunes: hairtunes.c alac.o
82e7cf8 @toofishes Fix dependency issue in Makefile
toofishes authored
7 $(CC) $(CFLAGS) -DHAIRTUNES_STANDALONE hairtunes.c alac.o -o $@ $(LDFLAGS)
ed13e78 @okertanov Makefile changes: .SILENT & .PHONY targets, pkg-config with the shell…
okertanov authored
8
01d9918 @wgoossens Alter Makefile to build seperate objects and remove inclusion of c file
wgoossens authored
9 shairport: $(OBJS)
10 $(CC) $(CFLAGS) $(OBJS) -o $@ $(LDFLAGS)
53d89bd @Andywebs Missing Makefile mods.
Andywebs authored
11
ed13e78 @okertanov Makefile changes: .SILENT & .PHONY targets, pkg-config with the shell…
okertanov authored
12 clean:
01d9918 @wgoossens Alter Makefile to build seperate objects and remove inclusion of c file
wgoossens authored
13 -@rm -rf hairtunes shairport $(OBJS)
14
15
16 %.o: %.c
17 $(CC) $(CFLAGS) -c $< -o $@
18
ed13e78 @okertanov Makefile changes: .SILENT & .PHONY targets, pkg-config with the shell…
okertanov authored
19
bd263d7 @mag- - add install target to Makefile
mag- authored
20 prefix=/usr/local
9516852 Added $(DESTDIR) to install target, makes packaging easier
Falk Stern authored
21 install: hairtunes shairport
16b3496 Some fixes on the install target
Falk Stern authored
22 install -D -m 0755 hairtunes $(DESTDIR)$(prefix)/bin/hairtunes
23 install -D -m 0755 shairport.pl $(DESTDIR)$(prefix)/bin/shairport.pl
24 install -D -m 0755 shairport $(DESTDIR)$(prefix)/bin/shairport
532a468 @okertanov formatting fix: trailing spaces
okertanov authored
25
be145fa @dotmpe Removed typo in Makefile
dotmpe authored
26 .PHONY: all clean install
bd263d7 @mag- - add install target to Makefile
mag- authored
27
ed13e78 @okertanov Makefile changes: .SILENT & .PHONY targets, pkg-config with the shell…
okertanov authored
28 .SILENT: clean
29
Something went wrong with that request. Please try again.