add most files
This commit is contained in:
31
make_gen
Normal file
31
make_gen
Normal file
@ -0,0 +1,31 @@
|
||||
#---------------------------------------------------------------------------
|
||||
# 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
|
Reference in New Issue
Block a user