comparison Makefile @ 14:a779ed022a87

Use correct headers and libraries under Solaris/Illumos
author Guido Berhoerster <guido+sencrypt@berhoerster.name>
date Tue, 13 Sep 2016 20:25:17 +0200
parents 5a992d873084
children b7309b030e8d
comparison
equal deleted inserted replaced
13:5a992d873084 14:a779ed022a87
96 .PHONY: all clean clobber dist install 96 .PHONY: all clean clobber dist install
97 97
98 all: $(PACKAGE) $(OBJS) $(MANPAGES) 98 all: $(PACKAGE) $(OBJS) $(MANPAGES)
99 99
100 $(PACKAGE): XCPPFLAGS = -D_XOPEN_SOURCE=600 -DOPENSSL_LOAD_CONF 100 $(PACKAGE): XCPPFLAGS = -D_XOPEN_SOURCE=600 -DOPENSSL_LOAD_CONF
101 $(PACKAGE): XCFLAGS := $(shell getconf LFS_CFLAGS)
102 $(PACKAGE): LDLIBS := -lcrypto
103 $(PACKAGE): XLDFLAGS := $(shell getconf LFS_LDFLAGS)
101 ifeq ($(HAVE_ERR_H),1) 104 ifeq ($(HAVE_ERR_H),1)
102 $(PACKAGE): XCPPFLAGS += -DHAVE_ERR_H 105 $(PACKAGE): XCPPFLAGS += -DHAVE_ERR_H
103 else 106 else
104 OBJS += err.o 107 OBJS += err.o
105 endif 108 endif
106 $(PACKAGE): XCFLAGS := $(shell getconf LFS_CFLAGS) 109 ifeq ($(OS_NAME),SunOS)
107 $(PACKAGE): LDLIBS := -lcrypto 110 $(PACKAGE): XCPPFLAGS += -I/usr/xpg4/include
108 $(PACKAGE): XLDFLAGS := $(shell getconf LFS_LDFLAGS) 111 $(PACKAGE): XLDFLAGS += -L/usr/xpg4/lib -R/usr/xpg4/lib
112 endif
109 $(PACKAGE): $(OBJS) 113 $(PACKAGE): $(OBJS)
110 $(LINK.o) $^ $(LDLIBS) -o $@ 114 $(LINK.o) $^ $(LDLIBS) -o $@
111 115
112 $(eval $(call generate-manpage-rule,$(MANPAGES))) 116 $(eval $(call generate-manpage-rule,$(MANPAGES)))
113 117