CFLAGS= -g -Wall
# CFLAGS= -O2
LIBS=`gtk-config --libs`
#DEFINES=-DDEBUG_PLUGSOCKET
CPPFLAGS=`gtk-config --cflags` $(DEFINES)

## Use the following line if GTK was compiled with XInput support:
# LIBS=-L/usr/X11R6/lib -lgtk -lgdk -lglib -lXext -lX11 -lXi -lm

## If GTK is not installed in a place your compiler/linker search
## by default, use something like the following:
# CFLAGS= -O2 -I/usr/local/include
# LIBS=-L/usr/X11R6/lib -L/usr/local/include -lgtk -lgdk -lglib -lXext -lX11 -lm

all: testsocket testsocket_child

testsocket: testsocket.o gtksocket.o
	$(CC) $(CFLAGS) -o testsocket testsocket.o gtksocket.o $(LIBS)

testsocket_child: testsocket_child.o gtkplug.o
	$(CC) $(CFLAGS) -o testsocket_child testsocket_child.o gtkplug.o $(LIBS)

clean:
	rm -f testsocket testsocket_child *.o
