From: teodor Date: Wed, 9 Feb 2005 12:34:25 +0000 (+0000) Subject: add LINUX_CFLAGS and chois of thread library X-Git-Url: http://sigaev.ru/git/gitweb.cgi?a=commitdiff_plain;h=28c3dc44fc7f7b73effc0fb28bca0c8dee621981;p=xgalaxy.git add LINUX_CFLAGS and chois of thread library --- diff --git a/Makefile b/Makefile index 5cd00e9..6662b90 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,12 @@ CC=gcc -#pkg-config gtk+-2.0 -INCLUDE=-I. -I../tedtools `pkg-config gtk+-2.0 --cflags` -CFLAGS=-Wall -g -O2 -D_GNU_SOURCE -DEFINES= -#LIB=-lm -L../tedtools -ltedtools `pkg-config gtk+-2.0 --libs` -lgthread-2.0 -LIB=-lm -L../tedtools -ltedtools `pkg-config gtk+-2.0 --libs` -lpthread +INCLUDE=-I. -I../tedtools `pkg-config gtk+-2.0 --cflags` +#LINUX_CFLAGS=-D_GNU_SOURCE +CFLAGS=-Wall -g -O2 $(LINUX_CFLAGS) + +#LINUX_LIB=-lpthread +FREEBSD_LIB=-lthr +LIB=-lm -L../tedtools -ltedtools `pkg-config gtk+-2.0 --libs` $(FREEBSD_LIB) $(LINUX_LIB) + AR=ar rcv RANLIB=ranlib LD=ld -x -shared @@ -16,7 +18,7 @@ OBJ=xgalaxy.o galaxy.o menuaction.o entry.o graphics.o \ .SUFFIXES: .o.c .c.o: - $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE) -c $< + $(CC) $(CFLAGS) $(INCLUDE) -c $< all: xgalaxy