2003-07-13 11:00:01 +02:00
|
|
|
|
|
|
|
include ..\Makefile.inc
|
|
|
|
|
|
|
|
EFLAGS = -I .. -pz ..
|
|
|
|
|
2007-12-17 23:23:56 +01:00
|
|
|
OUTDIR = ..
|
2008-09-30 18:12:05 +02:00
|
|
|
BEAMS = ..\iconv.beam ..\mod_irc.beam ..\mod_irc_connection.beam
|
2003-07-13 11:00:01 +02:00
|
|
|
|
2004-04-15 21:55:38 +02:00
|
|
|
SOURCE = iconv_erl.c
|
|
|
|
OBJECT = iconv_erl.o
|
|
|
|
DLL = $(OUTDIR)\iconv_erl.dll
|
|
|
|
|
2007-12-17 23:23:56 +01:00
|
|
|
ALL : $(DLL) $(BEAMS)
|
2003-07-13 11:00:01 +02:00
|
|
|
|
|
|
|
CLEAN :
|
2004-04-15 21:55:38 +02:00
|
|
|
-@erase $(DLL)
|
2003-07-13 11:00:01 +02:00
|
|
|
-@erase $(OUTDIR)\iconv_erl.exp
|
|
|
|
-@erase $(OUTDIR)\iconv_erl.lib
|
2004-04-15 21:55:38 +02:00
|
|
|
-@erase $(OBJECT)
|
2007-12-17 23:23:56 +01:00
|
|
|
-@erase $(BEAMS)
|
2003-07-13 11:00:01 +02:00
|
|
|
|
|
|
|
$(OUTDIR)\iconv.beam : iconv.erl
|
|
|
|
erlc -W $(EFLAGS) -o $(OUTDIR) iconv.erl
|
|
|
|
|
|
|
|
$(OUTDIR)\mod_irc.beam : mod_irc.erl
|
|
|
|
erlc -W $(EFLAGS) -o $(OUTDIR) mod_irc.erl
|
|
|
|
|
|
|
|
$(OUTDIR)\mod_irc_connection.beam : mod_irc_connection.erl
|
|
|
|
erlc -W $(EFLAGS) -o $(OUTDIR) mod_irc_connection.erl
|
|
|
|
|
2004-04-15 21:55:38 +02:00
|
|
|
CC=cl.exe
|
2004-04-27 22:28:23 +02:00
|
|
|
CC_FLAGS=-nologo -D__WIN32__ -DWIN32 -DWINDOWS -D_WIN32 -DNT -MD -Ox -I"$(ERLANG_DIR)\usr\include" -I"$(EI_DIR)\include" -I"$(ICONV_DIR)\include"
|
2003-07-13 11:00:01 +02:00
|
|
|
|
2004-04-15 21:55:38 +02:00
|
|
|
LD=link.exe
|
2004-04-27 22:28:23 +02:00
|
|
|
LD_FLAGS=-release -nologo -incremental:no -dll "$(EI_DIR)\lib\ei_md.lib" "$(EI_DIR)\lib\erl_interface_md.lib" "$(ICONV_LIB)" MSVCRT.LIB kernel32.lib advapi32.lib gdi32.lib user32.lib comctl32.lib comdlg32.lib shell32.lib
|
2003-07-13 11:00:01 +02:00
|
|
|
|
2004-04-15 21:55:38 +02:00
|
|
|
$(DLL) : $(OBJECT)
|
2012-04-06 16:31:17 +02:00
|
|
|
$(LD) $(LD_FLAGS) -out:$@ $<
|
2003-07-13 11:00:01 +02:00
|
|
|
|
2004-04-15 21:55:38 +02:00
|
|
|
$(OBJECT) : $(SOURCE)
|
2012-04-06 16:31:17 +02:00
|
|
|
$(CC) $(CC_FLAGS) -c -Fo$@ $<
|
2003-07-13 11:00:01 +02:00
|
|
|
|