2003-07-13 11:00:01 +02:00
|
|
|
|
|
|
|
include ..\Makefile.inc
|
|
|
|
|
|
|
|
OUTDIR = ..
|
|
|
|
EFLAGS = -I .. -pz ..
|
|
|
|
|
|
|
|
OBJS = \
|
|
|
|
$(OUTDIR)\iconv.beam \
|
|
|
|
$(OUTDIR)\mod_irc.beam \
|
|
|
|
$(OUTDIR)\mod_irc_connection.beam
|
|
|
|
|
2004-04-15 21:55:38 +02:00
|
|
|
SOURCE = iconv_erl.c
|
|
|
|
OBJECT = iconv_erl.o
|
|
|
|
DLL = $(OUTDIR)\iconv_erl.dll
|
|
|
|
|
|
|
|
ALL : $(DLL) $(OBJS)
|
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)
|
2004-03-21 21:27:09 +01:00
|
|
|
-@erase $(OBJS)
|
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)
|
|
|
|
$(LD) $(LD_FLAGS) -out:$(DLL) $(OBJECT)
|
2003-07-13 11:00:01 +02:00
|
|
|
|
2004-04-15 21:55:38 +02:00
|
|
|
$(OBJECT) : $(SOURCE)
|
|
|
|
$(CC) $(CC_FLAGS) -c -Fo$(OBJECT) $(SOURCE)
|
2003-07-13 11:00:01 +02:00
|
|
|
|