From owner-p4-projects@FreeBSD.ORG Tue Aug 15 18:04:59 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 03B0416A4E5; Tue, 15 Aug 2006 18:04:58 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6AEEC16A51A for ; Tue, 15 Aug 2006 18:04:58 +0000 (UTC) (envelope-from millert@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id BFC8F43D92 for ; Tue, 15 Aug 2006 18:04:50 +0000 (GMT) (envelope-from millert@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k7FI4oN7038700 for ; Tue, 15 Aug 2006 18:04:50 GMT (envelope-from millert@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k7FI4oZV038697 for perforce@freebsd.org; Tue, 15 Aug 2006 18:04:50 GMT (envelope-from millert@freebsd.org) Date: Tue, 15 Aug 2006 18:04:50 GMT Message-Id: <200608151804.k7FI4oZV038697@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to millert@freebsd.org using -f From: Todd Miller To: Perforce Change Reviews Cc: Subject: PERFORCE change 104079 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Aug 2006 18:04:59 -0000 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