Fix pkg-config handling introduced in the last commit.
PR: 57706 Submitted by: KATO Tsuguru <tkato@prontomail.com>
This commit is contained in:
parent
3684501415
commit
600df92c42
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=90648
@ -1,5 +1,5 @@
|
||||
--- makefile.orig Sun Sep 21 02:19:30 2003
|
||||
+++ makefile Mon Oct 6 18:02:43 2003
|
||||
--- makefile.orig Sun Sep 21 11:19:30 2003
|
||||
+++ makefile Tue Oct 7 10:52:28 2003
|
||||
@@ -8,8 +8,8 @@
|
||||
# To force GTK+ 1 build, define GTK1 on the make command line.
|
||||
|
||||
@ -21,7 +21,7 @@
|
||||
|
||||
vpath %.h ../src ../include
|
||||
vpath %.cxx ../src
|
||||
@@ -33,29 +34,33 @@
|
||||
@@ -33,29 +34,29 @@
|
||||
endif
|
||||
|
||||
ifdef DEBUG
|
||||
@ -35,20 +35,19 @@
|
||||
# If explicit setting of GTK1 or GTK2 then use that else look for
|
||||
# pkg-config which is an OK indication that GTK2 is available
|
||||
ifdef GTK2
|
||||
CONFIGFLAGS=pkg-config --cflags gtk+-2.0
|
||||
+MORELIBS=pkg-config --libs gthread-2.0
|
||||
-CONFIGFLAGS=pkg-config --cflags gtk+-2.0
|
||||
+CONFIGFLAGS=pkg-config --cflags gtk+-2.0 gthread-2.0
|
||||
else
|
||||
ifdef GTK1
|
||||
-CONFIGFLAGS=gtk-config --cflags
|
||||
+CONFIGFLAGS=pkg-config --cflags gtk+
|
||||
+MORELIBS=pkg-config --libs gthread
|
||||
+CONFIGFLAGS=pkg-config --cflags gtk+ gthread
|
||||
else
|
||||
ifneq (,$(findstring /,$(shell whereis -b pkg-config)))
|
||||
CONFIGFLAGS=pkg-config --cflags gtk+-2.0
|
||||
+MORELIBS=pkg-config --libs gthread-2.0
|
||||
-CONFIGFLAGS=pkg-config --cflags gtk+-2.0
|
||||
+CONFIGFLAGS=pkg-config --cflags gtk+-2.0 gthread-2.0
|
||||
else
|
||||
CONFIGFLAGS=gtk-config --cflags
|
||||
+MORELIBS=pkg-config --libs gthread
|
||||
-CONFIGFLAGS=gtk-config --cflags
|
||||
+CONFIGFLAGS=gtk-config --cflags gthread
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
@ -59,7 +58,7 @@
|
||||
|
||||
#++Autogenerated -- run src/LexGen.py to regenerate
|
||||
#**LEXOBJS=\\\n\(\*.o \)
|
||||
@@ -69,7 +74,7 @@
|
||||
@@ -69,7 +70,7 @@
|
||||
|
||||
# The LEXOBJS have to be treated specially as the functions in them are not called from external code
|
||||
|
||||
@ -68,16 +67,16 @@
|
||||
|
||||
clean:
|
||||
rm -f *.o $(COMPLIB)
|
||||
@@ -81,8 +86,10 @@
|
||||
@@ -81,8 +82,10 @@
|
||||
ScintillaBase.o ContractionState.o Editor.o ExternalLexer.o PropSet.o PlatGTK.o \
|
||||
KeyMap.o LineMarker.o ScintillaGTK.o CellBuffer.o ViewStyle.o \
|
||||
RESearch.o Style.o Indicator.o AutoComplete.o UniConversion.o XPM.o
|
||||
- $(AR) rc $@ $^
|
||||
- $(RANLIB) $@
|
||||
+ $(AR) `$(CONFIGFLAGS:cflags=libs)` `${MORELIBS}` -o $@ $^
|
||||
+ $(AR) `$(CONFIGFLAGS:cflags=libs)` -o $@ $^
|
||||
+
|
||||
+ $(LEXRLIB): $(LEXOBJS)
|
||||
+ $(AR) `$(CONFIGFLAGS:cflags=libs)` `${MORELIBS}` -o $@ $^
|
||||
+ $(AR) `$(CONFIGFLAGS:cflags=libs)` -o $@ $^
|
||||
|
||||
# Automatically generate header dependencies with "make deps"
|
||||
include deps.mak
|
||||
|
Loading…
Reference in New Issue
Block a user