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
.SUFFIXES: .o.c
.c.o:
- $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE) -c $<
+ $(CC) $(CFLAGS) $(INCLUDE) -c $<
all: xgalaxy