Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Aug 2006 19:42:18 GMT
From:      Todd Miller <millert@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 104103 for review
Message-ID:  <200608151942.k7FJgIBG050385@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=104103

Change 104103 by millert@millert_g4tower on 2006/08/15 19:41:52

	Process yacc and lex input files correctly.

Affected files ...

.. //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/libsemanage/src/Makefile#3 edit

Differences ...

==== //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/libsemanage/src/Makefile#3 (text+ko) ====

@@ -2,6 +2,9 @@
 
 CFLAGS += -Wall -I../include -I../../libselinux/include -I../../libsepol/include
 
+LFLAGS = -s
+YFLAGS = -d
+
 LIB =	semanage
 OBJS =	boolean_record.o booleans_active.o booleans_activedb.o \
 	booleans_file.o booleans_local.o booleans_policy.o \
@@ -24,7 +27,15 @@
 RANLIB = ranlib
 INSTALL = install
 
-all: lib$(LIB).a
+all: conf-scan.c conf-parse.c lib$(LIB).a
+
+conf-scan.c: conf-scan.l conf-parse.h
+	$(LEX) $(LFLAGS) -o$@ $<
+
+conf-parse.h: conf-parse.c
+
+conf-parse.c: conf-parse.y
+	$(YACC) $(YFLAGS) -psemanage_ -o$@ $<
 
 install: all
 	$(INSTALL) -o $(LIBOWN) -g $(LIBGRP) -m 0644 lib$(LIB).a \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608151942.k7FJgIBG050385>