40 lines
751 B
Makefile
40 lines
751 B
Makefile
#
|
|
# Makefile for the linux ncp-filesystem routines.
|
|
#
|
|
|
|
UTIL_EXECS = ncpmount ncpumount nprint slist
|
|
UTILS = $(addprefix $(BINDIR)/,$(UTIL_EXECS))
|
|
|
|
CFLAGS = -Wall $(INCLUDES) -O2
|
|
CC = gcc
|
|
|
|
all: $(UTILS) ncptest
|
|
|
|
$(UTILS): $(addsuffix .o,$(UTIL_EXECS)) ncplib.o
|
|
$(CC) -o $@ $(addsuffix .o,$(notdir $@)) ncplib.o
|
|
|
|
ncplib.o: ncplib.c ncplib.h
|
|
$(CC) $(CFLAGS) -finline-functions -c ncplib.c
|
|
|
|
test: test.o ncplib.o
|
|
$(CC) -o test test.o ncplib.o
|
|
|
|
ncptest: ncptest.o ncplib.o
|
|
$(CC) -o ncptest ncptest.o ncplib.o
|
|
|
|
dep:
|
|
$(CPP) -M $(INCLUDES) *.c > .depend
|
|
|
|
clean:
|
|
rm -f *.o *~ slist test ncptest
|
|
|
|
realclean: clean
|
|
rm -f $(UTILS) .depend $(DISTFILE)
|
|
|
|
#
|
|
# include a dependency file if one exists
|
|
#
|
|
ifeq (.depend,$(wildcard .depend))
|
|
include .depend
|
|
endif
|