mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
$(TOPDIR), make: Make it compile under SuSE 10.0, X86-64
This commit is contained in:
parent
6870a0f7fe
commit
6a37ebd3df
5 changed files with 23 additions and 10 deletions
3
Makefile
3
Makefile
|
|
@ -17,8 +17,9 @@ SUBDIRS = inst/pre \
|
|||
YMisc YMem YOptString \
|
||||
cfgfile gtopts \
|
||||
lock sigsync shmem \
|
||||
contr \
|
||||
msgfmt usrv uclnt statecheck \
|
||||
YThread YEvent YCbContr contr \
|
||||
YThread YEvent YCbContr \
|
||||
YStopWatch YStopWatchList YStopWatchQueue YStopWatchThreadList \
|
||||
eloop YApplication \
|
||||
YOsc \
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
CONFIG_ACDONE := $(wildcard config.acdone)
|
||||
DISTCLEAN += configure config.log autoscan.log configure.ac config.status
|
||||
AC_FILES_IN = $(shell find . -name '*.in' -maxdepth 2 | grep -ve "contrib\|dist\|nomake")
|
||||
AC_FILES_IN = $(shell find . -maxdepth 2 -name '*.in' | grep -ve "contrib\|dist\|nomake")
|
||||
AC_FILES = $(basename $(AC_FILES_IN))
|
||||
|
||||
all: config.acdone make_all
|
||||
|
|
|
|||
19
make/defs.mk
19
make/defs.mk
|
|
@ -18,8 +18,8 @@ PROJECT_STEM = $(PROJECT)-$(DIST_VERSION)
|
|||
CVS_ROOT_DIR = $(shell test -d CVS && pwd | sed -e "s%`cat CVS/Repository`%%; s%/$$%%")
|
||||
REV_SUBDIRS = $(shell echo $(SUBDIRS) | awk '{for (i=NF; i>=1; i--) printf ("%s ",$$i)}')
|
||||
FRESH_CVSDIR = $(HOME)/local/src/cvs.fresh
|
||||
|
||||
FIND_SUBDIRS = $(filter-out . .. ./CVS $(addprefix ./,$(IGNORE_SUBDIRS)), $(shell find . -type d -maxdepth 1))
|
||||
ARCH = @ARCH@
|
||||
FIND_SUBDIRS = $(filter-out . .. ./CVS $(addprefix ./,$(IGNORE_SUBDIRS)), $(shell find . -maxdepth 1 -type d))
|
||||
|
||||
PROJECT_CAPNAME = $(shell echo $(PROJECT) | tr [a-z] [A-Z])
|
||||
|
||||
|
|
@ -234,15 +234,20 @@ ifeq ($(USE_X),true)
|
|||
LDFLAGS += -L/usr/X11/lib -lXext -lX11
|
||||
endif
|
||||
|
||||
LPPFLAGS += -lstdc++
|
||||
ifeq ($(GCC_MAJOR),2)
|
||||
LPPFLAGS += -lstdc++ -lm
|
||||
LPPFLAGS += -lm
|
||||
CFLAGS += -I/usr/local/include
|
||||
CPPFLAGS += -I/usr/local/include
|
||||
#DEPEND_CPPFLAGS += -I/usr/include/g++ -I/usr/local/include
|
||||
else
|
||||
LPPFLAGS += -L/usr/local/gcc3.3/lib -lstdc++ -lgcc_s
|
||||
#DEPEND_CPPFLAGS += -I/usr/local/gcc3.3/include/c++/3.3 -I/usr/local/gcc3.3/include/c++/3.3/i686-pc-linux-gnu -I/usr/local/include \
|
||||
# -I/usr/include/g++/ext -I/usr/include/g++ -I/usr/include/g++/i586-suse-linux
|
||||
ifeq ($(GCC_MAJOR),3)
|
||||
LPPFLAGS += -L/usr/local/gcc3.3/lib -lgcc_s
|
||||
else
|
||||
ifeq ($(GCC_MAJOR),4) # -PIC is more a thing with AMD64, I think
|
||||
CPPFLAGS += -fPIC
|
||||
CFLAGS += -fPIC
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(LIBTYPE),shared)
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ erase-rpm:
|
|||
ssh -l root $(HOST) rpm -e $(KERNEL_BASE)-run $(KERNEL_BASE)-devel
|
||||
dist: clean
|
||||
cd ..;\
|
||||
tar -czf kernel.tar.gz `find kernel -type f -maxdepth 1 | grep -ve "setup\|trash\|CVS"`
|
||||
tar -czf kernel.tar.gz `find kernel -maxdepth 1 -type f | grep -ve "setup\|trash\|CVS"`
|
||||
mv ../kernel.tar.gz .
|
||||
clean:
|
||||
rm -rf $(KERNEL_BASE)-*
|
||||
|
|
|
|||
|
|
@ -49,7 +49,14 @@ else
|
|||
endif
|
||||
|
||||
LDFLAGS += -lytools -ldl -pthread
|
||||
ARCH = @ARCH@
|
||||
|
||||
LD_LIB_PATH=$(TOPDIR)/lib
|
||||
|
||||
ifeq (@ARCH@,x86)
|
||||
PROJECT_LDFLAGS += $(shell export PKG_CONFIG_PATH=/opt/gnome/lib/pkgconfig; pkg-config --libs glib-2.0)
|
||||
else
|
||||
ifeq (@ARCH@,x86_64)
|
||||
PROJECT_LDFLAGS += $(shell export PKG_CONFIG_PATH=/opt/gnome/lib64/pkgconfig; pkg-config --libs glib-2.0)
|
||||
endif
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue