Annotation of embedaddon/libevent/Makefile.nmake, revision 1.1.1.1
1.1 misho 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=/Iinclude /Icompat /IWIN32-Code /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:
15: CORE_OBJS=event.obj buffer.obj evbuffer.obj \
16: log.obj evutil.obj \
17: strlcpy.obj signal.obj win32.obj
18: EXTRA_OBJS=event_tagging.obj http.obj evdns.obj evrpc.obj
19:
20: ALL_OBJS=$(CORE_OBJS) $(WIN_OBJS) $(EXTRA_OBJS)
21: STATIC_LIBS=libevent_core.lib libevent_extras.lib libevent.lib
22:
23:
24: all: static_libs tests
25:
26: static_libs: $(STATIC_LIBS)
27:
28: win32.obj: WIN32-Code\win32.c
29: $(CC) $(CFLAGS) /c WIN32-Code\win32.c
30:
31: libevent_core.lib: $(CORE_OBJS)
32: lib $(LIBFLAGS) $(CORE_OBJS) /out:libevent_core.lib
33:
34: libevent_extras.lib: $(EXTRA_OBJS)
35: lib $(LIBFLAGS) $(EXTRA_OBJS) /out:libevent_extras.lib
36:
37: libevent.lib: $(CORE_OBJ) $(EXTRA_OBJS)
38: lib $(LIBFLAGS) $(CORE_OBJS) $(EXTRA_OBJS) /out:libevent.lib
39:
40: clean:
41: del $(ALL_OBJS)
42: del $(STATIC_LIBS)
43: cd test
44: $(MAKE) /F Makefile.nmake clean
45:
46: tests:
47: cd test
48: $(MAKE) /F Makefile.nmake
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>