INSTDIR=c:\wingtk

#####################################################
# Makefile: Ishan Chattopadhyaya                    #
#####################################################

# Make sure that the libgtkextra.a file is in the library path as in CFLAGS section.

CC=gcc

CFLAGS=-s -mwindows -mno-cygwin -fnative-struct -I$(INSTDIR)\INCLUDE -I$(INSTDIR)\INCLUDE\G__~1 -L$(INSTDIR)\LIB -B$(INSTDIR)\BIN -I$(INSTDIR)\GDK -DHAVE_CONFIG_H
OBJS= -lgtkextra $(INSTDIR)\LIB\libgtk.dll.a $(INSTDIR)\LIB\libglib-2.0.dll.a $(INSTDIR)\LIB\libgdk.dll.a


all: 
	echo "Try: make filename_without_extension"

testboxes:
	$(CC) -c "testboxes.c" $(CFLAGS)
	$(CC) -o "testboxes.exe" "testboxes.o" $(OBJS) $(CFLAGS)

testbubbles:
	$(CC) -c "testbubbles.c" $(CFLAGS)
	$(CC) -o "testbubbles.exe" "testbubbles.o" $(OBJS) $(CFLAGS)

testcharsel:
	$(CC) -c "testcharsel.c" $(CFLAGS)
	$(CC) -o "testcharsel.exe" "testcharsel.o" $(OBJS) $(CFLAGS)

testcontour:
	$(CC) -c "testcontour.c" $(CFLAGS)
	$(CC) -o "testcontour.exe" "testcontour.o" $(OBJS) $(CFLAGS)

testdt:
	$(CC) -c "testdt.c" $(CFLAGS)
	$(CC) -o "testdt.exe" "testdt.o" $(OBJS) $(CFLAGS)

testflux:
	$(CC) -c "testflux.c" $(CFLAGS)
	$(CC) -o "testflux.exe" "testflux.o" $(OBJS) $(CFLAGS)

testgtkfilesel:
	$(CC) -c "testgtkfilesel.c" $(CFLAGS)
	$(CC) -o "testgtkfilesel.exe" "testgtkfilesel.o" $(OBJS) $(CFLAGS)

testgtkfont:
	$(CC) -c "testgtkfont.c" $(CFLAGS)
	$(CC) -o "testgtkfont.exe" "testgtkfont.o" $(OBJS) $(CFLAGS)

testgtkiconlist:
	$(CC) -c "testgtkiconlist.c" $(CFLAGS)
	$(CC) -o "testgtkiconlist.exe" "testgtkiconlist.o" $(OBJS) $(CFLAGS)


testgtkplot:
	$(CC) -c "testgtkplot.c" $(CFLAGS)
	$(CC) -o "testgtkplot.exe" "testgtkplot.o" $(OBJS) $(CFLAGS)

testgtksheet:
	$(CC) -c "testgtksheet.c" $(CFLAGS)
	$(CC) -o "testgtksheet.exe" "testgtksheet.o" $(OBJS) $(CFLAGS)

testimage:
	$(CC) -c "testimage.c" $(CFLAGS)
	$(CC) -o "testimage.exe" "testimage.o" $(OBJS) $(CFLAGS)


clean:
	del *.o
	del *.exe
