Make C++ compiler friendly and handle all eight counters in one process.

r1171 | dcl | 2006-10-24 15:44:25 +1000 (Tue, 24 Oct 2006) | 2 lines
This commit is contained in:
Douglas Clowes
2006-10-24 15:44:25 +10:00
parent 74ad3d225f
commit 2ab57e1eb2
13 changed files with 294 additions and 191 deletions

View File

@@ -1,5 +1,8 @@
SHELL = /bin/sh
CC = gcc
CXX = g++
LD = $(CXX)
LIBS = nidaqmx
LIBFLAGS = -l$(LIBS)
TARGET = Monitor
@@ -11,6 +14,7 @@ CDEBUG = -ggdb3 -Wall
LDFLAGS += -g
CFLAGS += $(CDEBUG)
CXXFLAGS += $(CDEBUG)
all: $(TARGET) $(PULSER)
@@ -18,7 +22,7 @@ clean:
rm -f $(OBJS) $(TARGET) $(PULSER).o $(PULSER) core
$(TARGET) : $(OBJS)
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBFLAGS) -ggdb3
$(LD) $(LDFLAGS) -o $@ $(OBJS) $(LIBFLAGS) -ggdb3
$(TARGET).o: $(TARGET).c $(TARGET).h params.h utility.h sock.h cntr.h
@@ -35,4 +39,9 @@ sock.o: sock.c sock.h utility.h display.h cntr.h
utility.o: utility.c utility.h
$(PULSER) : $(PULSER).o
$(CC) $(LDFLAGS) -o $@ $(PULSER).o $(LIBFLAGS) -ggdb3
$(LD) $(LDFLAGS) -o $@ $(PULSER).o $(LIBFLAGS) -ggdb3
%.o : %.c
$(CXX) -c -o $@ $< $(CXXFLAGS)
# vim: noexpandtab ts=8 sts=8