[gnet-dev] Compiling with mingw



It is now possible to compile GNet with mingw. You first need to patch w32api up to version 0.5 [see http://mingw.sourceforge.net/] Below is a sample makefile.

Enjoy,
Andy

CC = gcc
FLAGS = -g -Wall -mno-cygwin -mpentium -fnative-struct -DBUILDING_DLL=1
INCLUDE = -I../glib -I. -L../glib
LIBS = -lglib-1.3 -lws2_32
OFILES = udp.o tcp.o iochannel.o inetaddr.o mcast.o gnet.o gnet-private.o

all:
	$(CC) $(FLAGS) $(INCLUDE) -c udp.c
	$(CC) $(FLAGS) $(INCLUDE) -c tcp.c
	$(CC) $(FLAGS) $(INCLUDE) -c iochannel.c
	$(CC) $(FLAGS) $(INCLUDE) -c inetaddr.c
	$(CC) $(FLAGS) $(INCLUDE) -c mcast.c
	$(CC) $(FLAGS) $(INCLUDE) -c gnet-private.c
	$(CC) $(FLAGS) $(INCLUDE) -c gnet.c
dllwrap $(INCLUDE) --export-all --output-def gnet.def --implib libgnet-1.0.a -o gnet-1.0.dll $(OFILES) $(LIBS)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]