Makefile (929B)
1 VERSION = 0.1 2 CPPFLAGS = -DDEBUG -I/usr/local/include 3 CFLAGS = -Wall -g 4 LDFLAGS = -L/usr/local/lib 5 DISTFILES = arg.h mixerd.c ncmixerc.c proto.h LICENSE Makefile README patches\ 6 util.h strlcpy.c strlcat.c 7 NCMIXERC_BIN = ncmixerc 8 NCMIXERC_OBJ = ncmixerc.o strlcpy.o 9 NCMIXERC_LIBS = -lcurses -lm 10 MIXERD_BIN = mixerd 11 MIXERD_OBJ = mixerd.o strlcpy.o strlcat.o 12 MIXERD_LIBS = -lsndio -lshout -lmp3lame 13 14 all: $(NCMIXERC_BIN) $(MIXERD_BIN) 15 16 $(NCMIXERC_BIN): $(NCMIXERC_OBJ) 17 $(CC) -o $@ $(NCMIXERC_OBJ) $(LDFLAGS) $(NCMIXERC_LIBS) 18 19 $(MIXERD_BIN): $(MIXERD_OBJ) 20 $(CC) -o $@ $(MIXERD_OBJ) $(LDFLAGS) $(MIXERD_LIBS) 21 22 dist: 23 mkdir -p ncmixer-$(VERSION) 24 cp -r $(DISTFILES) ncmixer-$(VERSION) 25 tar -cf ncmixer-$(VERSION).tar ncmixer-$(VERSION) 26 gzip ncmixer-$(VERSION).tar 27 rm -rf ncmixer-$(VERSION) 28 29 clean: 30 rm -f $(NCMIXERC_OBJ) $(MIXERD_OBJ) $(NCMIXERC_BIN) $(MIXERD_BIN) \ 31 ncmixer-$(VERSION).tar.gz 32 33 .PHONY: all dist clean