1 |
# Makefile for lib-src subdirectory in GNU Emacs. |
# Makefile for lib-src subdirectory in GNU Emacs. |
2 |
# Copyright (C) 1985, 1987, 1988, 1993, 1994, 2002, 2003, 2004 |
# Copyright (C) 1985, 1987, 1988, 1993, 1994, 2002, 2003, 2004, 2005 |
3 |
# Free Software Foundation, Inc. |
# Free Software Foundation, Inc. |
4 |
|
|
5 |
# This file is part of GNU Emacs. |
# This file is part of GNU Emacs. |
344 |
rm -f ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS}) |
rm -f ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS}) |
345 |
|
|
346 |
mostlyclean: |
mostlyclean: |
347 |
-rm -f core *.o |
-rm -f core *.o getopt.h getopt.h-t |
348 |
|
|
349 |
clean: mostlyclean |
clean: mostlyclean |
350 |
-rm -f ${INSTALLABLES} ${UTILITIES} ${DONT_INSTALL} |
-rm -f ${INSTALLABLES} ${UTILITIES} ${DONT_INSTALL} |
382 |
$(CC) ${ALL_CFLAGS} -o test-distrib ${srcdir}/test-distrib.c |
$(CC) ${ALL_CFLAGS} -o test-distrib ${srcdir}/test-distrib.c |
383 |
./test-distrib ${srcdir}/testfile |
./test-distrib ${srcdir}/testfile |
384 |
|
|
385 |
GETOPTOBJS = getopt.o getopt1.o |
/* We need the following in order to create a <getopt.h> when the system |
386 |
GETOPTDEPS = $(GETOPTOBJS) ${srcdir}/getopt.h |
doesn't have one that works with the given compiler. */ |
387 |
getopt.o: ${srcdir}/getopt.c ${srcdir}/getopt.h |
GETOPT_H = @GETOPT_H@ |
388 |
|
getopt.h: getopt_.h |
389 |
|
cp $(srcdir)/getopt_.h $@-t |
390 |
|
mv $@-t $@ |
391 |
|
|
392 |
|
GETOPTOBJS = @GETOPTOBJS@ |
393 |
|
GETOPTDEPS = $(GETOPTOBJS) $(GETOPT_H) |
394 |
|
getopt.o: ${srcdir}/getopt.c $(GETOPT_H) ${srcdir}/gettext.h |
395 |
${CC} -c ${CPP_CFLAGS} ${srcdir}/getopt.c |
${CC} -c ${CPP_CFLAGS} ${srcdir}/getopt.c |
396 |
getopt1.o: ${srcdir}/getopt1.c ${srcdir}/getopt.h |
getopt1.o: ${srcdir}/getopt1.c $(GETOPT_H) |
397 |
${CC} -c ${CPP_CFLAGS} ${srcdir}/getopt1.c |
${CC} -c ${CPP_CFLAGS} ${srcdir}/getopt1.c |
398 |
|
|
399 |
#ifdef REGEXP_IN_LIBC |
#ifdef REGEXP_IN_LIBC |
437 |
movemail${EXEEXT}: movemail.o pop.o $(GETOPTDEPS) |
movemail${EXEEXT}: movemail.o pop.o $(GETOPTDEPS) |
438 |
$(CC) ${LINK_CFLAGS} ${MOVE_FLAGS} movemail.o pop.o $(GETOPTOBJS) $(LOADLIBES) $(LIBS_MAIL) $(LIBS_MOVE) -o movemail |
$(CC) ${LINK_CFLAGS} ${MOVE_FLAGS} movemail.o pop.o $(GETOPTOBJS) $(LOADLIBES) $(LIBS_MAIL) $(LIBS_MOVE) -o movemail |
439 |
|
|
440 |
movemail.o: ${srcdir}/movemail.c ../src/config.h |
movemail.o: ${srcdir}/movemail.c ../src/config.h $(GETOPT_H) |
441 |
$(CC) -c ${CPP_CFLAGS} -Demacs ${MOVE_FLAGS} ${srcdir}/movemail.c |
$(CC) -c ${CPP_CFLAGS} -Demacs ${MOVE_FLAGS} ${srcdir}/movemail.c |
442 |
|
|
443 |
pop.o: ${srcdir}/pop.c ../src/config.h |
pop.o: ${srcdir}/pop.c ../src/config.h |