diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2005-10-23 19:52:00 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2005-10-23 19:52:00 +0000 |
commit | cca983ebbb70600ab53753b862d4657332329722 (patch) | |
tree | 4e2713a6ea3157ed7ea32e75b2c98f2f4f5e8bf8 /src/makefile_win | |
parent | e17d443108452981fb1362366817b9b170c81ddc (diff) |
compiled it on w32 (but normally we can use the cross-compiler and autoconf!)
svn path=/trunk/externals/iem/iemmatrix/; revision=3758
Diffstat (limited to 'src/makefile_win')
-rw-r--r-- | src/makefile_win | 66 |
1 files changed, 18 insertions, 48 deletions
diff --git a/src/makefile_win b/src/makefile_win index 5519e72..5313c2e 100644 --- a/src/makefile_win +++ b/src/makefile_win @@ -1,67 +1,37 @@ -all: ..\iemmatrix.dll +all: iemmatrix.dll + + + +CC = cl +LD = link VIS_CPP_PATH = "C:\Programme\Microsoft Visual Studio\Vc98" -PD_INST_PATH = "C:\Programme\pd-0.37-1" +PD_INST_PATH = C:\Programme\pd -PD_WIN_INCLUDE_PATH = /I. /I$(PD_INST_PATH)\src /I$(VIS_CPP_PATH)\include +PD_WIN_INCLUDE_PATH = /I. /I"$(PD_INST_PATH)\src" PD_WIN_C_FLAGS = /nologo /W3 /WX /DPD /D__WIN32__ /Ox -DPA_LITTLE_ENDIAN PD_WIN_L_FLAGS = /nologo PD_WIN_LIB = /NODEFAULTLIB:libc /NODEFAULTLIB:oldnames /NODEFAULTLIB:kernel /NODEFAULTLIB:uuid \ - $(VIS_CPP_PATH)\lib\libc.lib \ - $(PD_INST_PATH)\bin\pd.lib - - -SRC = mtx_add.c \ - mtx_binops.c \ - mtx_check.c \ - mtx_cholesky.c \ - mtx_col.c \ - mtx_diag.c \ - mtx_diegg.c \ - mtx_distance2.c \ - mtx_egg.c \ - mtx_element.c \ - mtx_exp.c \ - mtx_eye.c \ - mtx_gauss.c \ - mtx_inverse.c \ - mtx_log.c \ - mtx_matrix.c \ - mtx_mean.c \ - mtx_mul.c \ - mtx_mul~.c \ - mtx_ones.c \ - mtx_pivot.c \ - mtx_pow.c \ - mtx_print.c \ - mtx_prod.c \ - mtx_rand.c \ - mtx_resize.c \ - mtx_roll.c \ - mtx_row.c \ - mtx_scroll.c \ - mtx_size.c \ - mtx_sub.c \ - mtx_sum.c \ - mtx_trace.c \ - mtx_transpose.c \ - mtx_zeros.c \ - iemmatrix.c + libc.lib \ + /LIBPATH:$(PD_INST_PATH)\bin pd.lib + + +SRC = $(sort $(filter %.c, $(wildcard *.c))) OBJ = $(SRC:.c=.obj) -.c.obj: - cl $(PD_WIN_C_FLAGS) $(PD_WIN_INCLUDE_PATH) /c $*.c +$(OBJ): %.obj : %.c + $(CC) $(PD_WIN_C_FLAGS) $(PD_WIN_INCLUDE_PATH) /c $*.c -..\iemmatrix.dll: $(OBJ) - link $(PD_WIN_L_FLAGS) /dll /export:iemmatrix_setup \ - /out:..\iemmatrix.dll $(OBJ) $(PD_WIN_LIB) +iemmatrix.dll: $(OBJ) + $(LD) $(PD_WIN_L_FLAGS) /dll /export:iemmatrix_setup \ + /out:iemmatrix.dll $(OBJ) $(PD_WIN_LIB) clean: del *.obj |