blob: 49f72855bbd92a471ed633d3fa806a5e0a94e37d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
HPUX_MAJOR= $(shell uname -r|sed 's/^[^.]*\.\([^.]*\).*/\1/')
# HP-UX 10 has a select() in libcurses, so we need to get the libc version first
ifeq ($(HPUX_MAJOR), 10)
LDFLAGS:= -Wl,-E -lc $(LDFLAGS)
endif
# HP-UX 09 needs libc before libPW, so we need to get the libc version first
ifeq ($(HPUX_MAJOR), 09)
LDFLAGS:= -Wl,-E $(LDFLAGS:-lPW=-lc -lPW)
endif
# Does anyone use this stuff?
#ifdef ENFORCE_ALIGNMENT
# CFLAGS+= -DNOFIXADE
#else
# ifeq ($(HPUX_MAJOR), 08)
# CFLAGS+= +u -DHP_S500_ALIGN
# LDFLAGS+= +u
# else
# ifeq ($(HPUX_MAJOR), 09)
# ifeq ($(CC), cc)
# CFLAGS+= +u4
# LDFLAGS+= +u4
# endif
# endif
# endif
#endif
%.sl: %.o
$(LD) -b -o $@ $<
|