openbsd-ports/graphics/netpbm/patches/patch-lib_util_Makefile
naddy bf83427c09 Update to 10.35.75. This jumps to the latest "super stable" branch
and adds pamx, a minimal X11 viewer for files in the various netpbm
formats.
2010-07-02 02:54:59 +00:00

25 lines
843 B
Plaintext

$OpenBSD: patch-lib_util_Makefile,v 1.3 2010/07/02 02:54:59 naddy Exp $
--- lib/util/Makefile.orig Wed Jun 30 02:26:13 2010
+++ lib/util/Makefile Wed Jun 30 02:27:31 2010
@@ -12,14 +12,19 @@ INCLUDES = -I $(BUILDDIR) -I $(SRCDIR)/$(SUBDIR)/..
# nstring is required for asprintf(), etc. Also some systems don't have
# snprintf(), e.g. Solaris 2.5.1. 2002.03.29.
UTILOBJECTS = shhopt.o nstring.o filename.o
+SHUTILOBJECTS = $(patsubst %.o, %.lo, $(UTILOBJECTS))
MERGE_OBJECTS =
-all: $(UTILOBJECTS)
+all: $(UTILOBJECTS) $(SHUTILOBJECTS)
include $(SRCDIR)/Makefile.common
$(UTILOBJECTS):%.o:%.c importinc
+ $(CC) -c $(INCLUDES) -DNDEBUG $(CFLAGS) \
+ $(CFLAGS_PERSONAL) $(CADD) -o $@ $<
+
+$(SHUTILOBJECTS):%.lo:%.c importinc
$(CC) -c $(INCLUDES) -DNDEBUG $(CFLAGS) $(CFLAGS_SHLIB) \
$(CFLAGS_PERSONAL) $(CADD) -o $@ $<