Files
six/make_gen
2025-06-10 12:11:08 +02:00

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