MiniDLNA 1.0.22: cvs 2011-08-25
[tomato.git] / release / src / router / bpalogin / Makefile
blobf6bac80c214c6b9ce652224d6c1bb389ff0c3116
1 ###########################################################################
2 # Makefile for BPALogin v2.0
3 ##
5 ##
6 # Install locations as determined by configure
7 prefix=/usr/local
8 exec_prefix=${prefix}
9 SBINPATH=${exec_prefix}/sbin
10 ETCPATH=${prefix}/etc
13 # Locations of system utilities as determined by configure
14 #CC=mipsel-linux-gcc
15 CHKCONFIG=/sbin/chkconfig
16 INSTALL=/usr/bin/install -c
17 SED=/bin/sed
21 CFLAGS=-g -O2 -Wall $(EXTRACFLAGS)
22 LIBS=-lnsl
23 LDFLAGS=
25 OBJS = bpalogin.o protocol.o transaction.o gen_md5.o unixmain.o get_time.o
27 bpalogin: $(OBJS)
28 $(CC) -o $@ $(OBJS) $(LIBS) $(LDFLAGS)
30 .c.o:
31 $(CC) $(CFLAGS) -c $<
33 clean:
34 rm -fr *.o
36 distclean: clean
37 rm -f bpalogin config.log config.cache config.status Makefile bpalogin.h
39 bpalogin.h: bpalogin.h.in
40 $(SED) 's#@@BPALOGIN_CONF@@#$(ETCPATH)/bpalogin.conf#' < bpalogin.h.in > bpalogin.h
42 $(OBJS): bpalogin.h
44 install: bpalogin
45 install bpalogin $(INSTALLDIR)/usr/sbin
46 $(STRIP) $(INSTALLDIR)/usr/sbin/bpalogin