32 lines
772 B
Plaintext
32 lines
772 B
Plaintext
#---------------------------------------------------------------------------
|
|
# Makefile (sytem independent part) for the TECS Client library and TecsServer
|
|
# included in a machine-specific makefile
|
|
#
|
|
# Markus Zolliker, March 2003
|
|
#--------------------------------------------------------------------------
|
|
|
|
.SUFFIXES:
|
|
.SUFFIXES: .o .c .f
|
|
|
|
CC = gcc
|
|
|
|
SRC = term sys_select instr_hosts uselect myc_err myc_str
|
|
SYSSRC = $(addprefix $(linuxsys)/,$(SRC))
|
|
OBJ = $(addsuffix .o,$(SYSSRC))
|
|
DFIL = $(addsuffix .d,$(SYSSRC))
|
|
|
|
all: $(linuxsys)/six
|
|
|
|
six: $(linuxsys)/six
|
|
|
|
-include $(DFIL)
|
|
|
|
$(linuxsys)/six: six.c $(OBJ)
|
|
$(CC) $(CFLAGS) -o $@ $^
|
|
|
|
$(linuxsys)/%.o: %.c
|
|
$(CC) $(CFLAGS) -o $@ -c $<
|
|
|
|
clean:
|
|
rm -f $(linuxsys)/*.o $(linuxsys)/*.a $(linuxsys)/*.d $(linuxsys)/six
|