open-src/app/Makefile.inc
changeset 378 37921779d3c0
parent 355 a3a81e9c227d
child 469 18722b3626c4
equal deleted inserted replaced
377:0fcdf85b951a 378:37921779d3c0
     1 # -*- Makefile -*- rules common to most X.Org application modules
     1 # -*- Makefile -*- rules common to most X.Org application modules
     2 #
     2 #
     3 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
     3 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
     4 # Use subject to license terms.
     4 # Use subject to license terms.
     5 #
     5 #
     6 # Permission is hereby granted, free of charge, to any person obtaining a
     6 # Permission is hereby granted, free of charge, to any person obtaining a
     7 # copy of this software and associated documentation files (the
     7 # copy of this software and associated documentation files (the
     8 # "Software"), to deal in the Software without restriction, including
     8 # "Software"), to deal in the Software without restriction, including
    53 LIB_LD_OPTIONS = $(LIB_REQUIRED_LDFLAGS) \
    53 LIB_LD_OPTIONS = $(LIB_REQUIRED_LDFLAGS) \
    54 	-L$(PROTODIR)$(X11_DIR)/lib$(LIBSUBDIR) $(LIB_ADD_LD_OPTIONS)
    54 	-L$(PROTODIR)$(X11_DIR)/lib$(LIBSUBDIR) $(LIB_ADD_LD_OPTIONS)
    55 
    55 
    56 # Environment variable options to GNU autoconf configure script
    56 # Environment variable options to GNU autoconf configure script
    57 CONFIG_ENV = CC=$(CC) CFLAGS="$(PROG_CFLAGS)" LD="$(LD) $(LDFLAGS)" \
    57 CONFIG_ENV = CC=$(CC) CFLAGS="$(PROG_CFLAGS)" LD="$(LD) $(LDFLAGS)" \
    58 	CPPFLAGS="-I $(PROTODIR)$(X11_INCLUDES_DIR) $(APP_ADD_CPPFLAGS)" \
    58 	CPPFLAGS="-I $(PROTODIR)$(X11_INCLUDES_DIR) -I $(PROTODIR)/usr/include -I $(PROTODIR)/usr/include/freetype2 $(APP_ADD_CPPFLAGS)" \
    59 	LDFLAGS="$(PROG_LDFLAGS) -L$(PROTODIR)$(X11_DIR)/lib$(ARCHLIBSUBDIR) $(APP_ADD_LDFLAGS)" \
    59 	LDFLAGS="$(PROG_LDFLAGS) -L$(PROTODIR)/usr/lib -L$(PROTODIR)$(X11_DIR)/lib$(ARCHLIBSUBDIR) $(APP_ADD_LDFLAGS)" \
    60 	PKG_CONFIG_PATH=$(PROTODIR)/usr/lib/$(ARCHLIBSUBDIR)/pkgconfig:$(TOP)/common/pc-files/$(BUILD_DIR) \
    60 	PKG_CONFIG_PATH=$(PROTODIR)/usr/lib/$(ARCHLIBSUBDIR)/pkgconfig:$(TOP)/common/pc-files/$(BUILD_DIR) \
    61 	$(APP_CONFIG_ENV)
    61 	$(APP_CONFIG_ENV)
    62 
    62 
    63 # Run configure script
    63 # Run configure script
    64 $(SOURCE_DIR)/Makefile: $(UNPACK_TARGET)
    64 $(SOURCE_DIR)/Makefile: $(UNPACK_TARGET)