source: trunk/MagicSoft/Control/SubsystemIO/Makefile@ 7602

Last change on this file since 7602 was 1056, checked in by casaldaliga, 23 years ago
arrange Makefile
File size: 1.5 KB
Line 
1# Makefile for the MAGIC subsystem
2
3INC = `sigc-config --cflags`
4LIBS = `sigc-config --libs`
5#LIBS = -L/usr/local/lib/ -ltcl8.0 -lm
6DEBUG = -g -DDEBUG
7OPTIMIZE =
8CFLAGS =$(DEBUG) $(INC) $(OPTIMIZE) -DMAXMSG=4096
9CC = g++
10OBJS = Subsystem.o TCPListener.o TCPSender.o PeriodicAction.o PeriodicSignal.o IONotifier.o socket_functions.o
11all: mainForSubsystem mainForTCPListener mainForTCPSender mainForPeriodicAction mainForPeriodicSignal
12links:
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
17mainForSubsystem: mainForSubsystem.o $(OBJS)
18 $(CC) -o mainForSubsystem mainForSubsystem.o $(OBJS) $(LIBS)
19mainForTCPListener: mainForTCPListener.o $(OBJS)
20 $(CC) -o mainForTCPListener mainForTCPListener.o $(OBJS) $(LIBS)
21mainForTCPSender: mainForTCPSender.o $(OBJS)
22 $(CC) -o mainForTCPSender mainForTCPSender.o $(OBJS) $(LIBS)
23mainForPeriodicAction: mainForPeriodicAction.o $(OBJS)
24 $(CC) -o mainForPeriodicAction mainForPeriodicAction.o $(OBJS) $(LIBS)
25mainForPeriodicSignal: 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
33clean:
34 rm $(OBJS) mainForSubsystem mainForTCPListener mainForTCPSender mainForPeriodicAction mainForPeriodicSignal mainForSubsystem.o mainForTCPListener.o mainForTCPSender.o mainForPeriodicAction.o mainForPeriodicSignal.o
35
Note: See TracBrowser for help on using the repository browser.