Files
ncpfs/ipx-1.0/Samples/Makefile.in
ncpfs archive import 82706139bf Import ncpfs 2.2.1
2026-04-28 20:39:59 +02:00

36 lines
540 B
Makefile

top_srcdir = @top_srcdir@
top_builddir = ../..
include ${top_builddir}/Make.rules
UTILS = ipxrcv ipxsend rip sap
all: $(UTILS)
dep:
clean:
rm -f $(UTILS) *.o
mrproper: clean
rm -f *.d
distclean: mrproper
%.d: %.c
set -e; $(CC) -M $(CFLAGS) $(CCFLAGS) $(CFLAGS_$(@:.d=.o)) $< \
| sed 's,\($*\)\.o[ :]*,\1.o \1.do \1.to $@ : ,g' > $@; \
[ -s $@ ] || rm -f $@
%.o: %.c
$(CC) $(CFLAGS) $(CCFLAGS) $(CFLAGS_$@) -o $@ -c $<
%: %.o
$(CC) $(CFLAGS) -o $@ $(addsuffix .o,$@)
ifeq ($(NEED_DEP),yes)
include $(UTILS:%=%.d)
endif