openbsd-ports/x11/pwm/patches/patch-libtu_Makefile
naddy c7013b749b Update to 20010309 and general overhaul.
Submitted by Andrey Smagin <andrey@smagin.com>.
2002-02-20 12:47:55 +00:00

65 lines
1.4 KiB
Plaintext

$OpenBSD: patch-libtu_Makefile,v 1.1 2002/02/20 12:47:55 naddy Exp $
--- libtu/Makefile.orig Fri Mar 9 09:20:04 2001
+++ libtu/Makefile Mon Feb 18 20:15:03 2002
@@ -1,56 +1,4 @@
-LIBTU_NO_ERRMSG=1
-##
-## libtu Makefile
-##
-
-# System-specific configuration is in ../system.mk
-include ../system.mk
-
-######################################
-
-INCLUDES += -I./include
-CFLAGS += $(POSIX_SOURCE)
-
-OBJS= misc.o output.o util.o optparser.o parser.o tokenizer.o
-
-ifdef LIBTU_NO_ERRMSG
-DEFINES += -DLIBTU_NO_ERRMSG
-else
-ifndef HAS_SYSTEM_ASPRINTF
-OBJS += ../snprintf_2.2/snprintf.o
-else
-DEFINES += -DHAS_SYSTEM_ASPRINTF
-endif
-endif
-
-TARGETS=libtu.a
-TESTERS=tester tester2 tester3
-
-######################################
-
-include ../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}