openbsd-ports/x11/pwm/patches/patch-libtu_Makefile
naddy 73912c9d4a Update to release 20030528.
From new maintainer Gregory Steuck <greg-openbsd-pwm@nest.cx>.
2003-06-05 23:01:51 +00:00

65 lines
1.4 KiB
Plaintext

$OpenBSD: patch-libtu_Makefile,v 1.2 2003/06/05 23:01:51 naddy Exp $
--- libtu-20030528/Makefile.orig Sun Jun 1 15:28:03 2003
+++ libtu-20030528/Makefile Sun Jun 1 15:28:32 2003
@@ -1,56 +1,4 @@
-##
-## libtu Makefile
-##
-
-# System-specific configuration is in system.mk
-TOPDIR=.
-include system-inc.mk
-
-######################################
-
-INCLUDES += -I./include
-CFLAGS += $(POSIX_SOURCE)
-
-SOURCES=misc.c output.c util.c optparser.c parser.c tokenizer.c map.c
-
-ifdef LIBTU_NO_ERRMSG
-DEFINES += -DLIBTU_NO_ERRMSG
-else
-ifndef HAS_SYSTEM_ASPRINTF
-SOURCES += snprintf_2.2/snprintf.c
-else
-DEFINES += -DHAS_SYSTEM_ASPRINTF
-endif
-endif
-
-TARGETS=libtu.a
-TESTERS=tester tester2 tester3
-
-######################################
-
-include $(TOPDIR)/rules.mk
-
-######################################
-
-testers: $(TESTERS)
-
-libtu.a: $(OBJS)
- $(AR) $(ARFLAGS) $@ $+
- $(RANLIB) $@
-
-tester: tester.c libtu.a
- $(CC) $(CFLAGS) $< -L. -ltu -lm -o $@
-
-tester2: tester2.c libtu.a
- $(CC) $(CFLAGS) $< -L. -ltu -lm -o $@
-
-tester3: tester3.c libtu.a
- $(CC) $(CFLAGS) $< -L. -ltu -lm -o $@
-
-_install:
- $(INSTALLDIR) $(LIBDIR)
- $(INSTALLDIR) $(INCDIR)/libtu
- $(INSTALL) -m $(DATA_MODE) libtu.a $(LIBDIR)
- for i in include/libtu/*.h; do \
- $(INSTALL) -m $(DATA_MODE) $$i $(INCDIR)/libtu; \
- done
+CFLAGS += -Iinclude -DLIBTU_NO_ERRMSG
+OBJS = misc.o output.o util.o optparser.o parser.o tokenizer.o
+all: ${OBJS}
+ ${AR} ${ARFLAGS} libtu.a ${OBJS}