summaryrefslogtreecommitdiff
path: root/examples/Timer_Queue/Makefile
diff options
context:
space:
mode:
authorsergio <sergio@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-10-20 02:13:26 +0000
committersergio <sergio@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-10-20 02:13:26 +0000
commite99f4cf6541db2347f3d2e854c318d0119de82c1 (patch)
treec4161b05afc5a3faede3746e190f7566133f6295 /examples/Timer_Queue/Makefile
parent1f737ed0433844e395d154890191e0fb75b24ae0 (diff)
downloadATCD-e99f4cf6541db2347f3d2e854c318d0119de82c1.tar.gz
Added a driver class to factor out common code from other timer queue
implementations.
Diffstat (limited to 'examples/Timer_Queue/Makefile')
-rw-r--r--examples/Timer_Queue/Makefile41
1 files changed, 22 insertions, 19 deletions
diff --git a/examples/Timer_Queue/Makefile b/examples/Timer_Queue/Makefile
index 58c6b5fc69f..f29de0447ed 100644
--- a/examples/Timer_Queue/Makefile
+++ b/examples/Timer_Queue/Makefile
@@ -6,25 +6,28 @@
# Local macros
#----------------------------------------------------------------------------
-INFO = README
-
-BIN = main_async
-FILES = Async_Timer_Queue_Test
-LSRC = $(addsuffix .cpp,$(FILES))
-LOBJ = $(addsuffix .o,$(FILES))
-BUILD = $(VBIN)
-
-BIN = main_reactor
-FILES = Reactor_Timer_Queue_Test
-LSRC = $(addsuffix .cpp,$(FILES))
-LOBJ = $(addsuffix .o,$(FILES))
-BUILD = $(VBIN)
-
-BIN = main_thread
-FILES = Thread_Timer_Queue_Test
-LSRC = $(addsuffix .cpp,$(FILES))
-LOBJ = $(addsuffix .o,$(FILES))
-BUILD = $(VBIN)
+INFO = README
+
+LIB = libTQTD.a
+SHLIB = libTQTD.$(SOEXT)
+
+BIN = main_async \
+ main_reactor \
+ main_thread
+
+SRC = $(addsuffix .cpp,$(BIN))
+OBJ = $(SRC:%.cpp=$(VDIR)%.o)
+
+LSRC = Async_Timer_Queue_Test.cpp \
+ Reactor_Timer_Queue_Test.cpp \
+ Thread_Timer_Queue_Test.cpp \
+ Driver.cpp
+
+LDLIBS = -lTQTD
+
+VLDLIBS = $(LDLIBS:%=%$(VAR))
+
+BUILD = $(VLIB) $(VSHLIB) $(SHLIBA) $(VBIN)
#----------------------------------------------------------------------------
# Include macros and targets