66 OBJECTS = $(BUILTINSRCS:%.c=%.o) $(LIBSRCS:%.c=%.o)
67
68 include ../../../../Makefile.lib
69 include ../../../Makefile.lib
70
71 SRCS = $(BUILTINSRCS:%.c=../common/%.c) $(LIBSRCS:%.c=../common/%.c)
72 LIBS = $(DYNLIB) $(LINTLIB)
73
74 SRCDIR = ../common
75
76 CLEANFILES += $(SRCDIR)/topo_error.c $(SRCDIR)/topo_tables.c
77
78 CPPFLAGS += -I../common -I$(ADJUNCT_PROTO)/usr/include/libxml2 -I.
79 CFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS)
80 CFLAGS += -D_POSIX_PTHREAD_SEMANTICS
81 CFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS)
82 CERRWARN += -_gcc=-Wno-uninitialized
83 CERRWARN += -_gcc=-Wno-switch
84 CERRWARN += -_gcc=-Wno-parentheses
85
86 LINTFLAGS = -msux
87 LINTFLAGS64 = -msux -m64
88
89 $(DYNLIB) := LDLIBS += \
90 -lnvpair -lelf -lumem -lxml2 -lkstat -luuid -ldevinfo \
91 -lsmbios -lc -ldevid -lipmi -lscf -lpcidb
92
93 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
94 $(LINTLIB) := LINTFLAGS = -nsvx
95 $(LINTLIB) := LINTFLAGS64 = -nsvx -m64
96 $(LINTLIB) := LDLIBS += -lnvpair -lumem -lc
97
98 .KEEP_STATE:
99
100 all: $(LIBS)
101
102 lint: $(LINTLIB) lintcheck
103
104 pics/%.o: ../$(MACH)/%.c
105 $(COMPILE.c) -o $@ $<
|
66 OBJECTS = $(BUILTINSRCS:%.c=%.o) $(LIBSRCS:%.c=%.o)
67
68 include ../../../../Makefile.lib
69 include ../../../Makefile.lib
70
71 SRCS = $(BUILTINSRCS:%.c=../common/%.c) $(LIBSRCS:%.c=../common/%.c)
72 LIBS = $(DYNLIB) $(LINTLIB)
73
74 SRCDIR = ../common
75
76 CLEANFILES += $(SRCDIR)/topo_error.c $(SRCDIR)/topo_tables.c
77
78 CPPFLAGS += -I../common -I$(ADJUNCT_PROTO)/usr/include/libxml2 -I.
79 CFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS)
80 CFLAGS += -D_POSIX_PTHREAD_SEMANTICS
81 CFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS)
82 CERRWARN += -_gcc=-Wno-uninitialized
83 CERRWARN += -_gcc=-Wno-switch
84 CERRWARN += -_gcc=-Wno-parentheses
85
86 # not linted
87 SMATCH=off
88
89 LINTFLAGS = -msux
90 LINTFLAGS64 = -msux -m64
91
92 $(DYNLIB) := LDLIBS += \
93 -lnvpair -lelf -lumem -lxml2 -lkstat -luuid -ldevinfo \
94 -lsmbios -lc -ldevid -lipmi -lscf -lpcidb
95
96 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
97 $(LINTLIB) := LINTFLAGS = -nsvx
98 $(LINTLIB) := LINTFLAGS64 = -nsvx -m64
99 $(LINTLIB) := LDLIBS += -lnvpair -lumem -lc
100
101 .KEEP_STATE:
102
103 all: $(LIBS)
104
105 lint: $(LINTLIB) lintcheck
106
107 pics/%.o: ../$(MACH)/%.c
108 $(COMPILE.c) -o $@ $<
|