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

# 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 $@ $<

