Date: Tue, 15 Aug 2006 18:04:50 GMT From: Todd Miller <millert@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 104079 for review Message-ID: <200608151804.k7FI4oZV038697@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=104079 Change 104079 by millert@millert_macbook on 2006/08/15 18:04:30 Simpler Makefile Affected files ... .. //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/libsecompat/Makefile#2 edit Differences ... ==== //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/libsecompat/Makefile#2 (text+ko) ==== @@ -1,25 +1,25 @@ include ../../../Makeconfig -# Installation directories. -PREFIX = $(DESTDIR)/usr -LIBDIR = $(PREFIX)/lib -SHLIBDIR = $(DESTDIR)/lib +LIB = secompat +OBJS = getline.o strndup.o -LIBVERSION = 1 +CFLAGS += -Wall -SRCS= getline.c strndup.c +AR = ar cq +RANLIB = ranlib +INSTALL = install -LIBA=libsecompat.a -OBJS= $(patsubst %.c,%.o,$(SRCS)) +all: lib$(LIB).a -all: $(LIBA) +install: all + $(INSTALL) -o $(LIBOWN) -g $(LIBGRP) -m 0644 lib$(LIB).a \ + $(DESTDIR)/usr/lib + $(RANLIB) $(DESTDIR)/usr/lib/lib$(LIB).a -$(LIBA): $(OBJS) - libtool -static -c -o $@ $^ +clean: + rm -f lib$(LIB).a $(OBJS) -install: - -clean: - rm -f $(OBJS) $(LIBA) $(TARGET) - -.PHONY: install +lib$(LIB).a:: $(OBJS) + rm -f lib$(LIB).a + $(AR) lib$(LIB).a `lorder $(OBJS) | tsort -q` + $(RANLIB) lib$(LIB).a
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608151804.k7FI4oZV038697>