24 # Use is subject to license terms.
25 #
26 # Copyright (c) 2018, Joyent, Inc.
27 # Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
28 #
29
30 PROG= yacc
31
32 COMOBJS= y1.o y2.o y3.o y4.o
33 POBJECTS= $(COMOBJS)
34 POBJS= $(POBJECTS:%=objs/%)
35
36 OBJECTS= libmai.o libzer.o
37
38 LIBRARY= liby.a
39 VERS= .1
40 YACCPAR= yaccpar
41
42 include ../../../../lib/Makefile.lib
43
44 SRCDIR = ../common
45
46 # Override default source file derivation rule (in Makefile.lib)
47 # from objects
48 #
49 COMSRCS= $(COMOBJS:%.o=../common/%.c)
50 LIBSRCS= $(OBJECTS:%.o=../common/%.c)
51 SRCS= $(COMSRCS) $(LIBSRCS)
52
53 LIBS = $(DYNLIB)
54
55 # Tune ZDEFS to ignore undefined symbols for building the yacc shared library
56 # since these symbols (mainly yyparse) are to be resolved elsewhere.
57 #
58 $(DYNLIB):= ZDEFS = $(ZNODEFS)
59 $(DYNLIBCCC):= ZDEFS = $(ZNODEFS)
60
61 INCLIST= -I../../include -I../../include/$(MACH)
62 CPPFLAGS= $(INCLIST) $(DEFLIST) $(CPPFLAGS.master)
63 $(PROG):= LDLIBS = $(LDLIBS.cmd)
|
24 # Use is subject to license terms.
25 #
26 # Copyright (c) 2018, Joyent, Inc.
27 # Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
28 #
29
30 PROG= yacc
31
32 COMOBJS= y1.o y2.o y3.o y4.o
33 POBJECTS= $(COMOBJS)
34 POBJS= $(POBJECTS:%=objs/%)
35
36 OBJECTS= libmai.o libzer.o
37
38 LIBRARY= liby.a
39 VERS= .1
40 YACCPAR= yaccpar
41
42 include ../../../../lib/Makefile.lib
43
44 COMPATLINKS= /usr/ccs/lib/liby.so \
45 /usr/ccs/lib/$(MACH64)/liby.so
46
47 $(ROOT)/usr/ccs/lib/liby.so := COMPATLINKTARGET=../../lib/liby.so.1
48 $(ROOT)/usr/ccs/lib/$(MACH64)/liby.so:= \
49 COMPATLINKTARGET=../../../lib/$(MACH64)/liby.so.1
50
51 SRCDIR = ../common
52
53 # Override default source file derivation rule (in Makefile.lib)
54 # from objects
55 #
56 COMSRCS= $(COMOBJS:%.o=../common/%.c)
57 LIBSRCS= $(OBJECTS:%.o=../common/%.c)
58 SRCS= $(COMSRCS) $(LIBSRCS)
59
60 LIBS = $(DYNLIB)
61
62 # Tune ZDEFS to ignore undefined symbols for building the yacc shared library
63 # since these symbols (mainly yyparse) are to be resolved elsewhere.
64 #
65 $(DYNLIB):= ZDEFS = $(ZNODEFS)
66 $(DYNLIBCCC):= ZDEFS = $(ZNODEFS)
67
68 INCLIST= -I../../include -I../../include/$(MACH)
69 CPPFLAGS= $(INCLIST) $(DEFLIST) $(CPPFLAGS.master)
70 $(PROG):= LDLIBS = $(LDLIBS.cmd)
|