forked from mirrors/tftp-hpa-google

bsd_signal() may not be defined, and there is really no reason to even try to use it if sigaction() is avaiable; using sigaction() guarantees the semantics we really want. Replace uses of common variables with explicit instantiation and extern declarations in a header file. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
25 lines
321 B
Makefile
25 lines
321 B
Makefile
SRCROOT = ..
|
|
VERSION = $(shell cat ../version)
|
|
|
|
-include ../MCONFIG
|
|
include ../MRULES
|
|
|
|
OBJS = tftpsubs.$(O) signal.$(O)
|
|
LIB = libcommon.a
|
|
|
|
all: $(LIB)
|
|
|
|
$(LIB): $(OBJS)
|
|
-rm -f $(LIB)
|
|
$(AR) $(LIB) $(OBJS)
|
|
$(RANLIB) $(LIB)
|
|
|
|
$(OBJS): tftpsubs.h
|
|
|
|
install:
|
|
|
|
clean:
|
|
rm -f *.o *.obj *.exe $(LIB)
|
|
|
|
distclean: clean
|
|
rm -f *~
|