$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 $@ $<