Home | History | Annotate | Download | only in libevent
      1 # WATCH OUT!  This makefile is a work in progress.  It is probably missing
      2 # tons of important things.  DO NOT RELY ON IT TO BUILD A GOOD LIBEVENT.
      3 
      4 # Needed for correctness
      5 CFLAGS=/IWIN32-Code /Iinclude /Icompat /DWIN32 /DHAVE_CONFIG_H /I.
      6 
      7 # For optimization and warnings
      8 CFLAGS=$(CFLAGS) /Ox /W3 /wd4996 /nologo
      9 
     10 # XXXX have a debug mode
     11 
     12 LIBFLAGS=/nologo
     13 
     14 CORE_OBJS=event.obj buffer.obj bufferevent.obj bufferevent_sock.obj \
     15 	bufferevent_pair.obj listener.obj evmap.obj log.obj evutil.obj \
     16 	strlcpy.obj signal.obj bufferevent_filter.obj evthread.obj \
     17 	bufferevent_ratelim.obj evutil_rand.obj
     18 WIN_OBJS=win32select.obj evthread_win32.obj buffer_iocp.obj \
     19 	event_iocp.obj bufferevent_async.obj
     20 EXTRA_OBJS=event_tagging.obj http.obj evdns.obj evrpc.obj
     21 
     22 ALL_OBJS=$(CORE_OBJS) $(WIN_OBJS) $(EXTRA_OBJS)
     23 STATIC_LIBS=libevent_core.lib libevent_extras.lib libevent.lib
     24 
     25 
     26 all: static_libs tests
     27 
     28 static_libs: $(STATIC_LIBS)
     29 
     30 libevent_core.lib: $(CORE_OBJS) $(WIN_OBJS)
     31 	lib $(LIBFLAGS) $(CORE_OBJS) $(WIN_OBJS) /out:libevent_core.lib 
     32 
     33 libevent_extras.lib: $(EXTRA_OBJS)
     34 	lib $(LIBFLAGS) $(EXTRA_OBJS) /out:libevent_extras.lib
     35 
     36 libevent.lib: $(CORE_OBJS) $(WIN_OBJS) $(EXTRA_OBJS)
     37 	lib $(LIBFLAGS) $(CORE_OBJS) $(EXTRA_OBJS) $(WIN_OBJS) /out:libevent.lib
     38 
     39 clean:
     40 	del $(ALL_OBJS)
     41 	del $(STATIC_LIBS)
     42 	cd test
     43 	$(MAKE) /F Makefile.nmake clean
     44 
     45 tests:
     46 	cd test
     47 	$(MAKE) /F Makefile.nmake
     48