Mercurial > pt1.oyama
diff src/Makefile @ 125:e413158cae13
Add ushare project files.
author | naoyan@johnstown.minaminoshima.org |
---|---|
date | Sun, 03 Oct 2010 11:35:19 +0900 |
parents | |
children | 4e39ce051c57 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/Makefile Sun Oct 03 11:35:19 2010 +0900 @@ -0,0 +1,98 @@ +ifeq (,$(wildcard ../config.mak)) +$(error "../config.mak is not present, run configure !") +endif +include ../config.mak + +PROG = recpt1 + +EXTRADIST = ushare.1 \ + cds.h \ + cms.h \ + msr.h \ + http.h \ + presentation.h \ + metadata.h \ + mime.h \ + services.h \ + buffer.h \ + util_iconv.h \ + content.h \ + cfgparser.h \ + trace.h \ + redblack.h \ + osdep.h \ + ctrl_telnet.h \ + ushare.h \ + gettext.h \ + minmax.h \ + decoder.h \ + mkpath.h \ + pt1_dev.h \ + recpt1.h \ + tssplitter_lite.h \ + upnp_device.h \ + upnp_main.h \ + version.h \ + +SRCS = \ + cds.c \ + cms.c \ + msr.c \ + http.c \ + presentation.c \ + metadata.c \ + mime.c \ + services.c \ + buffer.c \ + util_iconv.c \ + content.c \ + cfgparser.c \ + trace.c \ + redblack.c \ + osdep.c \ + ctrl_telnet.c \ + ushare.c \ + decoder.c \ + mkpath.c \ + recpt1.c \ + tssplitter_lite.c + +OBJS = $(SRCS:.c=.o) + +.SUFFIXES: .c .o + +all: depend $(PROG) + +.c.o: + $(CC) -c $(CFLAGS) -g $(OPTFLAGS) -o $@ $< + +$(PROG): $(OBJS) + $(CC) $(OBJS) $(LDFLAGS) $(EXTRALIBS) -o $@ + +clean: + -$(RM) -f *.o $(PROG) + -$(RM) -f .depend + +distclean: + +install: $(PROG) + $(INSTALL) -d $(bindir) + $(INSTALL) $(PROG) $(bindir) + $(STRIP) $(INSTALLSTRIP) $(bindir)/$(PROG) + +depend: + $(CC) -I.. -MM $(CFLAGS) $(SRCS) 1>.depend + +.PHONY: clean distclean install depend + +dist-all: + cp $(EXTRADIST) $(SRCS) Makefile $(DIST) + +.PHONY: dist-all + +# +# include dependency files if they exist +# +ifneq ($(wildcard .depend),) +include .depend +endif