This commit is contained in:
cvs
2003-03-13 14:03:07 +00:00
parent 9a5bd901d8
commit 731e48d920
6 changed files with 121 additions and 103 deletions

69
tecs/make_tecs Normal file
View File

@@ -0,0 +1,69 @@
#---------------------------------------------------------------------------
# Makefile for the TECS Client library and TecsServer
#
# Markus Zolliker, March 2000
# may now be used on different systems without change M.Z.01.2002
# included in a machine-specific makefile
#--------------------------------------------------------------------------
include make_opt
LIBR_OBJ =coc_util.o myc_err.o myc_str.o myc_buf.o myc_time.o \
$(FORTIFYOBJ)
SERV_OBJ =tecs.o coc_server.o tecs_lsc.o tecs_serial.o coc_logfile.o \
tecs_data.o $(LIBR_OBJ)
CLI_OBJ =tecs_cli.o coc_client.o $(LIBR_OBJ)
TCLI_OBJ =$(SYS_FILE).o $(SYS_FILE)_c.o $(CLI_OBJ)
TECLI_OBJ =tecs_client.o tecs_plot.o sys_util.o str.o instr_hosts.o \
$(TCLI_OBJ)
.f.o:
$(FC) $(FFLAGS) -c $F
.c.o:
$(CC) $(CFLAGS) -c $C
default: libtecsl.a
all: libtecsl.a TecsServer TecsClient keep_running
test: tecs_cli.c
echo $(VPATH) $C
libtecsl.a: $(CLI_OBJ)
- rm $@
$(AR) $(ARFLAGS) $@ $Q
ranlib $@
TecsServer: $(SERV_OBJ)
$(CC) $(CFLAGS) -o $@ $Q -lm $(HARDSUPLIB)
TecsClient: $(TECLI_OBJ)
$(FC) -o $@ $Q $(PGLIB) $(RDLIB)
libtecs.so: tecs_c.c $(CLI_OBJ)
$(CC) $(CFLAGS) -shared -o $@ $Q
tecs_serial.o: tecs_serial.c
$(CC) $(CFLAGS) -I$(SICS)/hardsup -c $C
six: six.c term.c sys_select.c libtecsl.a
$(CC) $(CFLAGS) -o $@ $Q
rstart: rstart.c myc_str.o myc_err.o instr_hosts.o
$(CC) $(CFLAGS) -o $@ $Q
serverd: serverd.c myc_str.o myc_err.o coc_util.o myc_buf.o
$(CC) $(CFLAGS) -o $@ $Q
starts: starts.c myc_str.o myc_err.o coc_util.o myc_buf.o
$(CC) $(CFLAGS) -o $@ $Q
keep_running: keep_running.c
$(CC) $(CFLAGS) -o $@ $Q
clean:
- rm *.o
- rm *.a
- rm TecsServer
- rm TecsClient