Makefile revision 1196
98N/A###############################################################################
98N/A#
98N/A# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
98N/A#
371N/A# Permission is hereby granted, free of charge, to any person obtaining a
98N/A# copy of this software and associated documentation files (the "Software"),
98N/A# to deal in the Software without restriction, including without limitation
98N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
98N/A# and/or sell copies of the Software, and to permit persons to whom the
98N/A# Software is furnished to do so, subject to the following conditions:
98N/A#
98N/A# The above copyright notice and this permission notice (including the next
98N/A# paragraph) shall be included in all copies or substantial portions of the
98N/A# Software.
98N/A#
98N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
98N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
98N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
98N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
98N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
98N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
98N/A# DEALINGS IN THE SOFTWARE.
98N/A#
98N/A#
98N/A
98N/A# Manual conversion of X11R6.9 xc/config/pswrap/Imakefile
98N/A
98N/A CC = cc
98N/A FRIENDSDEF = -DFRIENDSFILE='"<DPS/dpsfriends.h>"'
98N/A DEFINES = -DXENVIRONMENT
98N/A CPPFLAGS += $(DEFINES)
98N/A YACC = /usr/ccs/bin/yacc
493N/A YFLAGS = -d
98N/AEXTRA_LIBRARIES = # -ll
98N/A
98N/ASRCS = main.c pswdict.c pswfile.c \
493N/A systemnames.c psw.c pswstring.c pswsemantics.c
98N/A
98N/AOBJS = main.o pswparser.o lexer.o pswdict.o pswfile.o \
493N/A systemnames.o psw.o pswstring.o pswsemantics.o
98N/A
98N/A# Inspired by automake 1.11 silent rules - hides details by default
98N/A# Run make V=1 to show details
98N/ADEFAULT_V = 0
98N/AV_CC = $(V_CC_$(V))
98N/AV_CC_ = $(V_CC_$(DEFAULT_V))
493N/AV_CC_0 = @echo " CC " $@;
493N/AV_YACC = $(V_YACC_$(V))
98N/AV_YACC_ = $(V_YACC_$(DEFAULT_V))
98N/AV_YACC_0 = @echo " YACC " $@;
all: pswrap
pswrap: $(OBJS)
$(V_CC)$(CC) -o $@ $(LDFLAGS) $(PROG_LDFLAGS) $(OBJS) $(EXTRA_LIBRARIES)
pswfile.o:
$(V_CC)$(CC) -c $(CFLAGS) $(CPPFLAGS) $(FRIENDSDEF) $*.c
.c.o:
$(V_CC)$(CC) $(CFLAGS) $(CPPFLAGS) -c $(OUTPUT_OPTION) $<
pswparser.h + pswparser.c : pswparser.y
$(V_YACC)$(YACC) $(YFLAGS) pswparser.y ; \
mv y.tab.c pswparser.c ; \
mv y.tab.h pswparser.h
install: pswrap
$(INSTALL) pswrap $(DESTDIR)$(bindir)/pswrap
clean:
${RM} lexer.c y.tab.h pswparser.c *.o pswrap
lexer.o: pswparser.h