Files
ncpfs/lib/Makelib
ncpfs archive import 0979ae6a41 Import ncpfs 2.2.0
2026-04-28 20:39:59 +02:00

62 lines
1.3 KiB
Plaintext

#
# Makefile for the linux ncp-filesystem routines.
#
BASE_OBJ = ncplib.o
ifdef NDS_SUPPORT
NDS_OBJ = ndslib.o mpilib.o
BASE_OBJ += ndscrypt.o
endif
ifdef SIGNATURES
BASE_OBJ += ncpsign.o
endif
O_OBJ := $(BASE_OBJ) $(NDS_OBJ) ncplib_err.o
all: $(NCPLIB)
$(NDS_OBJ): %.o: %.c ncplib_err.h
$(CC) $(CFLAGS) $(CCFLAGS) -DPORTABLE -DSMITH -DUNIT32 -DMUNIT16 -o $@ -c $<
$(BASE_OBJ): %.o: %.c ncplib_err.h
$(CC) $(CFLAGS) $(CCFLAGS) -o $@ -c $<
COM_ERR = ../lib/com_err
COM_ERR_CFILES = $(COM_ERR)/com_err.c $(COM_ERR)/error_message.c \
$(COM_ERR)/et_name.c $(COM_ERR)/init_et.c
COM_ERR_OFILES = $(COM_ERR)/com_err.o $(COM_ERR)/error_message.o \
$(COM_ERR)/et_name.o $(COM_ERR)/init_et.o
O_OBJ += $(COM_ERR_OFILES)
$(COM_ERR_OFILES): %.o: %.c
make -C $(COM_ERR)
ncplib_err.o: ncplib_err.h ncplib_err.c
$(CC) $(CFLAGS) $(CCFLAGS) -c ncplib_err.c
ncplib_err.h ncplib_err.c: ncplib_err.et
$(COM_ERR)/compile_et ../lib/ncplib_err
dep: ncplib_err.h
make -C $(COM_ERR) dep
$(CPP) -M $(INCLUDES) *.c > .depend
clean:
make -C $(COM_ERR) clean
rm -f *.o *~ ncplib_err.[ch] ../include/ncplib_err.h
rm -f libncp.* libcom_err.a
mrproper: clean
make -C $(COM_ERR) mrproper
rm -f $(UTILS) .depend $(DISTFILE)
#
# include a dependency file if one exists
#
ifeq (.depend,$(wildcard .depend))
include .depend
endif