core module make file tidy ups

This commit is contained in:
Mark 2004-02-10 14:53:19 +00:00
parent d83894a912
commit ec374ca68f
9 changed files with 35 additions and 168 deletions

1
.gitattributes vendored
View file

@ -169,6 +169,7 @@ data/tlds.nfo -text
/dl.h eol=lf
dl/.indent.pro -text
dl/Makefile -text
dl/Makefile.inc -text
dl/README -text
dl/cs/.indent.pro -text
dl/cs/ChangeLog -text

24
dl/Makefile.inc Executable file
View file

@ -0,0 +1,24 @@
include ../../Makefile.inc
OBJS = ${SRCS:.c=.o}
all: $(TARGET)
.c.o:
$(CC) $(CFLAGS) $(MODINCLUDES) -c $<
$(TARGET): $(OBJS)
$(LD) $(MODLDFLAGS) -o $(TARGET) $(LIBS) $(OBJS)
clean:
$(RM) *.o *.lo *.so
install: $(TARGET)
$(INSTALL_MOD) $(TARGET) $(MODDIRECTORY)
dist: $(DISTFILES)
@for files in $(DISTFILES); do \
cp $$files $(DISTDIR)/$$files; \
done
$(OBJS): Makefile

View file

@ -1,29 +1,7 @@
include ../../Makefile.inc
SRCS = cs.c cs_help.c
OBJS = ${SRCS:.c=.o}
TARGET = connectserv.so
DISTFILES = $(SRCS) cs.h Makefile ChangeLog
all: $(TARGET)
.c.o:
$(CC) $(CFLAGS) $(MODINCLUDES) -c $<
$(TARGET): $(OBJS)
$(LD) $(MODLDFLAGS) -o $(TARGET) $(LIBS) $(OBJS)
clean:
$(RM) *.o *.lo *.so
install: $(TARGET)
$(INSTALL_MOD) $(TARGET) $(MODDIRECTORY)
dist: $(DISTFILES)
@for files in $(DISTFILES); do \
cp $$files $(DISTDIR)/$$files; \
done
$(OBJS): Makefile
include ../Makefile.inc
cs.o: cs.c cs_help.c

View file

@ -1,30 +1,7 @@
include ../../Makefile.inc
SRCS = $(extauth_src)
OBJS = $(extauth_objs)
TARGET = extauth.so
DISTFILES = serviceroots.c Makefile
all: $(TARGET)
include ../Makefile.inc
.c.o:
$(CC) $(CFLAGS) $(MODINCLUDES) -c $<
$(TARGET): $(OBJS)
$(LD) $(MODLDFLAGS) -o $(TARGET) $(LIBS) $(OBJS)
clean:
$(RM) *.o *.lo *.so
install: $(TARGET)
$(INSTALL_MOD) $(TARGET) $(MODDIRECTORY)
dist: $(DISTFILES)
@for files in $(DISTFILES); do \
cp $$files $(DISTDIR)/$$files; \
done
$(OBJS): Makefile
serviceroots.o: serviceroots.c

View file

@ -1,30 +1,7 @@
include ../../Makefile.inc
SRCS = hostserv.c hs_help.c
OBJS = ${SRCS:.c=.o}
TARGET = hostserv.so
DISTFILES = $(SRCS) hostserv.h Makefile ChangeLog
all: $(TARGET)
include ../Makefile.inc
.c.o:
$(CC) $(CFLAGS) $(MODINCLUDES) -c $<
$(TARGET): $(OBJS)
$(LD) $(MODLDFLAGS) -o $(TARGET) $(LIBS) $(OBJS)
clean:
$(RM) *.o *.lo *.so
install: $(TARGET)
$(INSTALL_MOD) $(TARGET) $(MODDIRECTORY)
dist: $(DISTFILES)
@for files in $(DISTFILES); do \
cp $$files $(DISTDIR)/$$files; \
done
$(OBJS): Makefile
hostserv.o: hostserv.c

View file

@ -1,30 +1,7 @@
include ../../Makefile.inc
SRCS = loveserv.c ls_help.c
OBJS = ${SRCS:.c=.o}
TARGET = loveserv.so
DISTFILES = $(SRCS) loveserv.h Makefile ChangeLog
all: $(TARGET)
include ../Makefile.inc
.c.o:
$(CC) $(CFLAGS) $(MODINCLUDES) -c $<
$(TARGET): $(OBJS)
$(LD) $(MODLDFLAGS) -o $(TARGET) $(LIBS) $(OBJS)
clean:
$(RM) *.o *.lo *.so
install: $(TARGET)
$(INSTALL_MOD) $(TARGET) $(MODDIRECTORY)
dist: $(DISTFILES)
@for files in $(DISTFILES); do \
cp $$files $(DISTDIR)/$$files; \
done
$(OBJS): Makefile
loveserv.o: loveserv.c ls_help.c

View file

@ -1,30 +1,7 @@
include ../../Makefile.inc
SRCS = ms.c ms_help.c
OBJS = ${SRCS:.c=.o}
TARGET = moraleserv.so
DISTFILES = $(SRCS) ms.h Makefile ChangeLog
all: $(TARGET)
include ../Makefile.inc
.c.o:
$(CC) $(CFLAGS) $(MODINCLUDES) -c $<
$(TARGET): $(OBJS)
$(LD) $(MODLDFLAGS) -o $(TARGET) $(LIBS) $(OBJS)
clean:
$(RM) *.o *.lo *.so
install: $(TARGET)
$(INSTALL_MOD) $(TARGET) $(MODDIRECTORY)
dist: $(DISTFILES)
@for files in $(DISTFILES); do \
cp $$files $(DISTDIR)/$$files; \
done
$(OBJS): Makefile
ms.o: ms.c ms_help.c

View file

@ -1,29 +1,7 @@
include ../../Makefile.inc
SRCS = operlog.c
TARGET = operlog.so
DISTFILES = $(SRCS) Makefile ChangeLog
INCLUDES = -I../.. -I../../adns
include ../Makefile.inc
SOURCES= operlog.c
OBJECTS= operlog.o
TARGET= operlog.so
all: operlog
.c.o:
$(CC) $(CFLAGS) $(INCLUDES) -c $<
operlog: $(OBJECTS)
$(LD) $(MODLDFLAGS) -o $(TARGET) $(LIBS) $(OBJECTS)
/bin/cp $(TARGET) ../
clean:
/bin/rm -rf ../$(TARGET)
/bin/rm -rf *.o *.lo *.so
install: operlog
$(INSTALL) -m 644 $(TARGET) $(DIRECTORY)/dl
$(OBJECTS): Makefile
operlog.o: operlog.c ol_help.c

View file

@ -1,29 +1,7 @@
include ../../Makefile.inc
SRCS = template.c
OBJS = ${SRCS:.c=.o}
TARGET = template.so
DISTFILES = $(SRCS) Makefile
all: $(TARGET)
.c.o:
$(CC) $(CFLAGS) $(MODINCLUDES) -c $<
$(TARGET): $(OBJS)
$(LD) $(MODLDFLAGS) -o $(TARGET) $(LIBS) $(OBJS)
clean:
$(RM) *.o *.lo *.so
install: $(TARGET)
$(INSTALL_MOD) $(TARGET) $(MODDIRECTORY)
dist: $(DISTFILES)
@for files in $(DISTFILES); do \
cp $$files $(DISTDIR)/$$files; \
done
$(OBJS): Makefile
include ../Makefile.inc
template.o: template.c