diff recpt1/Makefile.in @ 78:5a0126d8af17

landed ipc control functionality branch
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Tue, 01 Dec 2009 20:24:22 +0900
parents d1c740aa1b67
children 2b55985bbb4c
line wrap: on
line diff
--- a/recpt1/Makefile.in	Tue Dec 01 18:33:01 2009 +0900
+++ b/recpt1/Makefile.in	Tue Dec 01 20:24:22 2009 +0900
@@ -5,6 +5,8 @@
 CC = @CC@
 
 TARGET = recpt1
+TARGET2 = recpt1ctl
+TARGETS = $(TARGET) $(TARGET2)
 RELEASE_VERSION = '1.0.0'
 
 CPPFLAGS = -I../driver -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
@@ -14,12 +16,13 @@
 LDFLAGS  =
 
 OBJS   = recpt1.o decoder.o mkpath.o
+OBJS2  = recpt1ctl.o
 DEPEND = .deps
 
-all: $(TARGET)
+all: $(TARGETS)
 
 clean:
-	rm -f $(OBJS) $(TARGET) $(DEPEND) version.h
+	rm -f $(OBJS) $(OBJS2) $(TARGETS) $(DEPEND) version.h
 
 distclean: clean
 	rm -f Makefile config.h config.log config.status
@@ -28,10 +31,13 @@
 	rm -fr configure config.h.in aclocal.m4 autom4te.cache *~
 
 $(TARGET): $(OBJS)
-	$(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
+	$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
+
+$(TARGET2): $(OBJS2)
+	$(CC) $(LDFLAGS) -o $@ $(OBJS2) $(LIBS2)
 
 $(DEPEND): version.h
-	$(CC) -MM $(OBJS:.o=.c) $(CPPFLAGS) > $@
+	$(CC) -MM $(OBJS:.o=.c) $(OBJS2:.o=.c) $(CPPFLAGS) > $@
 
 version.h:
 	revh=`hg parents --template 'const char *version = "r{rev}:{node|short} ({date|isodate})";\n' 2>/dev/null`; \
@@ -42,6 +48,6 @@
 	fi
 
 install: $(TARGET)
-	install -m 755 $(TARGET) $(DESTDIR)$(bindir)
+	install -m 755 $(TARGETS) $(DESTDIR)$(bindir)
 
 -include .deps