- Rearranged directory structure for forking out ANSTO
- Refactored site specific stuff into a site module - PSI specific stuff is now in the PSI directory. - The old version has been tagged with pre-ansto
This commit is contained in:
65
tecs/make_gen
Normal file
65
tecs/make_gen
Normal file
@@ -0,0 +1,65 @@
|
||||
#---------------------------------------------------------------------------
|
||||
# Makefile (sytem independent part) for the TECS Client library and TecsServer
|
||||
# included in a machine-specific makefile
|
||||
#
|
||||
# Markus Zolliker, March 2003
|
||||
#--------------------------------------------------------------------------
|
||||
|
||||
LIBR_OBJ =coc_util.o myc_err.o myc_str.o myc_buf.o myc_time.o
|
||||
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_getenv.o sys_env.o myc_tmp.o sys_cmdpar.o \
|
||||
sys_date.o sys_wait.o sys_lun.o sys_rdline.o \
|
||||
sys_get_key.o sys_unix.o sys_open$(SYS_OPEN).o \
|
||||
$(CLI_OBJ)
|
||||
TECLI_OBJ =tecs_client.o tecs_plot.o str.o instr_hosts.o \
|
||||
$(TCLI_OBJ)
|
||||
|
||||
#.f.o:
|
||||
# $(FC) $(FFLAGS) -c $F
|
||||
#
|
||||
#.c.o:
|
||||
# $(CC) $(CFLAGS) -c $C
|
||||
|
||||
libtecsl.a: $(CLI_OBJ)
|
||||
rm -f $@
|
||||
$(AR) $(ARFLAGS) $@ $Q
|
||||
ranlib $@
|
||||
|
||||
all: libtecsl.a TecsServer TecsClient keep_running six
|
||||
|
||||
test: tecs_cli.c
|
||||
echo $(VPATH) $C
|
||||
|
||||
TecsServer: $(SERV_OBJ) $(HARDSUPLIB)
|
||||
$(CC) $(CFLAGS) -o $@ $Q -lm $(FORTIFYOBJ)
|
||||
|
||||
TecsClient: $(TECLI_OBJ)
|
||||
$(FC) -o $@ $Q $(PGLIB) $(RDLIB) $(FORTIFYOBJ)
|
||||
|
||||
# -- for tascom --
|
||||
libtecs.so: tecs_c.c $(CLI_OBJ)
|
||||
$(CC) $(CFLAGS) -shared -o $@ $Q $(FORTIFYOBJ)
|
||||
|
||||
# -- needs special include
|
||||
tecs_serial.o: tecs_serial.c
|
||||
$(CC) $(CFLAGS) -I$(SICS)/hardsup -c $Q
|
||||
|
||||
keep_running: keep_running.c
|
||||
$(CC) $(CFLAGS) -o $@ $Q $(FORTIFYOBJ)
|
||||
|
||||
six: six.c term.o sys_select.o libtecsl.a
|
||||
$(CC) $(CFLAGS) -o $@ $Q $(FORTIFYOBJ)
|
||||
|
||||
#rstart: rstart.c myc_str.o myc_err.o instr_hosts.o
|
||||
# $(CC) $(CFLAGS) -o $@ $Q $(FORTIFYOBJ)
|
||||
#
|
||||
#serverd: serverd.c myc_str.o myc_err.o coc_util.o myc_buf.o
|
||||
# $(CC) $(CFLAGS) -o $@ $Q $(FORTIFYOBJ)
|
||||
#
|
||||
#starts: starts.c myc_str.o myc_err.o coc_util.o myc_buf.o
|
||||
# $(CC) $(CFLAGS) -o $@ $Q $(FORTIFYOBJ)
|
||||
|
||||
clean:
|
||||
rm -f *.o *.a six keep_running TecsServer TecsClient
|
||||
Reference in New Issue
Block a user