Makefile hacking to make 'gmake js' work in ns/js/src. Abstracted a

few constants, added -ldl for Linux.  Tested on Irix 6.3, SunOs 5.6,
Linux 2.031.
This commit is contained in:
mccabe 1998-04-23 00:39:10 +00:00
Родитель 7b23810178
Коммит 58b80a70f0
1 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -120,13 +120,14 @@ JSJAVA_STUBHEADERS = -I$(DEPTH)/sun-java/include/_gen \
else
JSJAVA_STUBHEADERS = -I$(JRI_GEN_DIR) -I$(JDK_GEN_DIR)
endif
LDFLAGS = $(DIST)/lib/libnspr.$(LIB_SUFFIX) -lm
JSJAVA_CFLAGS = -I$(DEPTH)/sun-java/md-include \
-I$(DEPTH)/sun-java/include \
$(JSJAVA_STUBHEADERS)
LDFLAGS = $(DIST)/lib/libnspr.$(LIB_SUFFIX) -lm
# LIBNSPR includes unneeded libmsgc21.a, but abstracts nspr version,
# etc. nicely.
LDFLAGS = $(LIBNSPR) -lm
ifeq ($(OS_ARCH), OSF1)
LDFLAGS += -lc_r
@ -134,6 +135,9 @@ endif
ifeq ($(OS_ARCH), SunOS)
LDFLAGS += -lposix4 -ldl -lnsl -lsocket
endif
ifeq ($(OS_ARCH), Linux)
LDFLAGS += -ldl
endif
# this requires clobbering and recompiling with XCFLAGS=-DJSFILE
js: