--- openh323u.mak.in.orig 2003-11-03 19:05:49.000000000 +0100 +++ openh323u.mak.in 2003-11-03 19:07:11.000000000 +0100 @@ -127,12 +127,26 @@ # PWLIBDIR = @PWLIBDIR@ -STDCCFLAGS += @STDCCFLAGS@ LDFLAGS += @LDFLAGS@ ENDLDLIBS := @ENDLDLIBS@ $(ENDLDLIBS) H323_AVCODEC = @H323_AVCODEC@ H323_VICH263 = @H323_VICH263@ +# +# stkn@gentoo.org +# moved stuff around, this should fix problems with include order +# blame me if this breaks things... +# +OH323_SRCDIR = $(OPENH323DIR)/src +ifdef PREFIX +OH323_INCDIR = $(PREFIX)/include/openh323 +else +OH323_INCDIR = $(OPENH323DIR)/include +endif +OH323_LIBDIR = $(OPENH323DIR)/lib + +STDCCFLAGS += -I$(OH323_INCDIR) @STDCCFLAGS@ + ifdef LIBRARY_MAKEFILE include $(PWLIBDIR)/make/unix.mak else @@ -147,16 +161,6 @@ #OH323_SUPPRESS_H235 = 1 - -OH323_SRCDIR = $(OPENH323DIR)/src -ifdef PREFIX -OH323_INCDIR = $(PREFIX)/include/openh323 -else -OH323_INCDIR = $(OPENH323DIR)/include -endif -OH323_LIBDIR = $(OPENH323DIR)/lib - - ifdef NOTRACE STDCCFLAGS += -DPASN_NOPRINTON -DPASN_LEANANDMEAN OH323_SUFFIX = n @@ -175,15 +179,12 @@ endif - OH323_BASE = h323_$(PLATFORM_TYPE)_$(OH323_SUFFIX)$(LIB_TYPE) OH323_FILE = lib$(OH323_BASE).$(LIB_SUFFIX) LDFLAGS += -L$(OH323_LIBDIR) LDLIBS := -l$(OH323_BASE) $(LDLIBS) -STDCCFLAGS += -I$(OH323_INCDIR) - ifneq ($(OS),Nucleus)