Blob Blame History Raw
###########################################################################
### You Will need to modify the following variables for your system
###########################################################################
###########################################################################

# Path to Apache httpd installation
BASE = %APACHE%

# Paths to required libraries
PCRE = %PCRE%
CURL = %CURL%

# Linking libraries
LIBS = $(BASE)\lib\libapr-1.lib \
       $(BASE)\lib\libaprutil-1.lib \
       $(PCRE)\pcre.lib \
       $(CURL)\libcurl.lib \
       wsock32.lib

###########################################################################
###########################################################################

CC = cL

MT = mt

DEFS = /nologo /O2 /W3 -DWIN32 -DWINNT -Dinline=APR_INLINE -D_CONSOLE -D$(VERSION)

EXE = mlogc.exe

INCLUDES = -I. -I..\apache2 \
           -I$(PCRE)\include -I$(PCRE) \
           -I$(CURL)\include -I$(CURL) \
           -I$(BASE)\include 

CFLAGS= -MT $(INCLUDES) $(DEFS)

LDFLAGS = 

OBJS = mlogc.obj

all: $(EXE)

.c.obj:
	$(CC) $(CFLAGS) -c $< -Fo$@

.cpp.obj:
	$(CC) $(CFLAGS) -c $< -Fo$@

$(EXE): $(OBJS)
	$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) /link /NODEFAULTLIB:MSVCRT.lib /subsystem:console

install: $(EXE)
	copy $(EXE) $(BASE)\bin

clean:
	del $(OBJS) $(EXE) *.dll *.lib *.pdb *.idb *.ilk *.exp *.res *.rc *.bin *.manifest