1993-12-22 01:13:06 +03:00
|
|
|
# $Id: Makefile.cfg,v 1.10 1993/12/21 22:14:02 davidb Exp $
|
1993-11-03 19:29:57 +03:00
|
|
|
|
|
|
|
.if defined(PROG)
|
|
|
|
LDADD+= -lgnumalloc
|
|
|
|
DPADD+= /usr/lib/libgnumalloc.a
|
|
|
|
.endif
|
1993-08-02 21:38:43 +04:00
|
|
|
|
1993-07-15 00:36:42 +04:00
|
|
|
# Paths to libraries
|
1993-12-22 01:13:06 +03:00
|
|
|
.if exists($(.CURDIR)/../libgroff/obj.${MACHINE})
|
|
|
|
LIBGROFF= $(.CURDIR)/../libgroff/obj.${MACHINE}/libgroff.a
|
|
|
|
.elif exists($(.CURDIR)/../libgroff/obj)
|
1993-07-15 00:36:42 +04:00
|
|
|
LIBGROFF= $(.CURDIR)/../libgroff/obj/libgroff.a
|
|
|
|
.else
|
|
|
|
LIBGROFF= $(.CURDIR)/../libgroff/libgroff.a
|
|
|
|
.endif
|
|
|
|
|
1993-12-22 01:13:06 +03:00
|
|
|
.if exists($(.CURDIR)/../libdriver/obj.${MACHINE})
|
|
|
|
LIBDRIVER= $(.CURDIR)/../libdriver/obj.${MACHINE}/libdriver.a
|
|
|
|
.elif exists($(.CURDIR)/../libdriver/obj)
|
1993-07-15 00:36:42 +04:00
|
|
|
LIBDRIVER= $(.CURDIR)/../libdriver/obj/libdriver.a
|
|
|
|
.else
|
|
|
|
LIBDRIVER= $(.CURDIR)/../libdriver/libdriver.a
|
|
|
|
.endif
|
|
|
|
|
1993-12-22 01:13:06 +03:00
|
|
|
.if exists($(.CURDIR)/../libbib/obj.${MACHINE})
|
|
|
|
LIBBIB= $(.CURDIR)/../libbib/obj.${MACHINE}/libbib.a
|
|
|
|
.elif exists($(.CURDIR)/../libbib/obj)
|
1993-07-15 00:36:42 +04:00
|
|
|
LIBBIB= $(.CURDIR)/../libbib/obj/libbib.a
|
|
|
|
.else
|
|
|
|
LIBBIB= $(.CURDIR)/../libbib/libbib.a
|
|
|
|
.endif
|
|
|
|
|
|
|
|
CFLAGS+= -DHAVE_UNISTD_H=1\
|
|
|
|
-DHAVE_DIRENT_H=1\
|
|
|
|
-DHAVE_LIMITS_H=1\
|
|
|
|
-DHAVE_STDLIB_H=1\
|
|
|
|
-DHAVE_SYS_DIR_H=1\
|
|
|
|
-DHAVE_CC_LIMITS_H=1\
|
|
|
|
-DHAVE_CC_UNISTD_H=1\
|
|
|
|
-DSTDLIB_H_DECLARES_GETOPT=1\
|
|
|
|
-DUNISTD_H_DECLARES_GETOPT=1\
|
|
|
|
-DSTDLIB_H_DECLARES_PUTENV=1\
|
|
|
|
-DRETSIGTYPE=void\
|
|
|
|
-DHAVE_MMAP=1\
|
|
|
|
-DHAVE_RENAME=1\
|
|
|
|
-DHAVE_MKSTEMP=1\
|
1993-07-18 17:00:11 +04:00
|
|
|
-DHAVE_SYS_SIGLIST=1
|
1993-07-15 00:36:42 +04:00
|
|
|
|
|
|
|
.y.cc:
|
|
|
|
$(YACC) $(YFLAGS) $(.IMPSRC)
|
|
|
|
mv y.tab.c $(.PREFIX).cc
|
|
|
|
mv y.tab.h $(.PREFIX).tab.h
|