libnix/sources/socket/Makefile.in

59 lines
966 B
Makefile

#### Start of system configuration section. ####
srcdir = @srcdir@
VPATH = @srcdir@
CC = @CC@
CPP = @CPP@
AS = @AS@
AR = @AR@
RANLIB = @RANLIB@
AWK = @AWK@
#### End system configuration section ####
ifneq ($(TARGET),clean)
include ../../sources/socket/filelist
endif
CURDIR = $(shell pwd)
OPTIONS=-I$(srcdir)/../headers -D_SOCKET_IO $(CFLAGS)
REDEF=-D_DOSBase=___DOSBase
%.o: %.c $(SUBDIRS)
$(CC) $(OPTIONS) -S $(filter-out $(SUBDIRS), $^) -o $*.S 2>&1|tee $*.err
$(CPP) -traditional $(REDEF) $*.S -o $*__2.S
$(CC) $(OPTIONS) $*__2.S -c -o $*.o
-rm $*.S $*__2.S
-if test ! -s $*.err; then rm $*.err; fi
.PHONY: all clean veryclean
all: libsocket.a
clean:
-rm -rf $(SUBDIRS)
veryclean:
-rm -rf *
.PHONY: subdirs $(SUBDIRS)
subdirs: $(SUBDIRS)
$(SUBDIRS):
mkdir -p $@
libsocket.a: subdirs $(OBJECTS) ../../sources/socket/Makefile ../../sources/socket/filelist
-rm -f $@
$(AR) -q $@ $(OBJECTS)
$(RANLIB) $@
# echo "\\$$$(V)" >>$@