1 | # Makefile for the MAGIC subsystem
|
---|
2 |
|
---|
3 | INC = `sigc-config --cflags`
|
---|
4 | LIBS = `sigc-config --libs`
|
---|
5 | #LIBS = -L/usr/local/lib/ -ltcl8.0 -lm
|
---|
6 | DEBUG = -g -DDEBUG
|
---|
7 | OPTIMIZE =
|
---|
8 | CFLAGS =$(DEBUG) $(INC) $(OPTIMIZE) -DMAXMSG=4096
|
---|
9 | CC = g++
|
---|
10 | OBJS = Subsystem.o TCPListener.o TCPSender.o PeriodicAction.o PeriodicSignal.o IONotifier.o socket_functions.o
|
---|
11 | all: mainForSubsystem mainForTCPListener mainForTCPSender mainForPeriodicAction mainForPeriodicSignal
|
---|
12 | links:
|
---|
13 | ln -s Subsystem.plain.hxx Subsystem.hxx
|
---|
14 | ln -s Subsystem.plain.cxx Subsystem.cxx
|
---|
15 | ln -s TCPListener.select.hxx TCPListener.hxx
|
---|
16 | ln -s TCPListener.select.cxx TCPListener.cxx
|
---|
17 | mainForSubsystem: mainForSubsystem.o $(OBJS)
|
---|
18 | $(CC) -o mainForSubsystem mainForSubsystem.o $(OBJS) $(LIBS)
|
---|
19 | mainForTCPListener: mainForTCPListener.o $(OBJS)
|
---|
20 | $(CC) -o mainForTCPListener mainForTCPListener.o $(OBJS) $(LIBS)
|
---|
21 | mainForTCPSender: mainForTCPSender.o $(OBJS)
|
---|
22 | $(CC) -o mainForTCPSender mainForTCPSender.o $(OBJS) $(LIBS)
|
---|
23 | mainForPeriodicAction: mainForPeriodicAction.o $(OBJS)
|
---|
24 | $(CC) -o mainForPeriodicAction mainForPeriodicAction.o $(OBJS) $(LIBS)
|
---|
25 | mainForPeriodicSignal: mainForPeriodicSignal.o $(OBJS)
|
---|
26 | $(CC) -o mainForPeriodicSignal mainForPeriodicSignal.o $(OBJS) $(LIBS)
|
---|
27 |
|
---|
28 | .SUFFIXES: .o .cxx
|
---|
29 | .cxx.o:
|
---|
30 | $(CC) $(CFLAGS) -c $*.cxx -o $*.o
|
---|
31 | .c.o:
|
---|
32 | $(CC) $(CFLAGS) -c $*.c -o $*.o
|
---|
33 | clean:
|
---|
34 | rm $(OBJS) mainForSubsystem mainForTCPListener mainForTCPSender mainForPeriodicAction mainForPeriodicSignal mainForSubsystem.o mainForTCPListener.o mainForTCPSender.o mainForPeriodicAction.o mainForPeriodicSignal.o
|
---|
35 |
|
---|