diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-02-26 14:14:31 +0100 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-02-26 14:14:31 +0100 |
commit | bc3e79ea24a0fb7fda6f54a6f72e3a46943b1cec (patch) | |
tree | dc6c01c2d10cf12cc6ca9b0d3ed31b7759b9dcbd /makefiles/nmake/compiler.mk | |
parent | fa74e6ffbd82c77e72497097e4e4366cd24e3b61 (diff) | |
download | wolfbones-bc3e79ea24a0fb7fda6f54a6f72e3a46943b1cec.tar.gz wolfbones-bc3e79ea24a0fb7fda6f54a6f72e3a46943b1cec.tar.bz2 |
temporary Win32 checkin
Diffstat (limited to 'makefiles/nmake/compiler.mk')
-rw-r--r-- | makefiles/nmake/compiler.mk | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/makefiles/nmake/compiler.mk b/makefiles/nmake/compiler.mk new file mode 100644 index 0000000..a351041 --- /dev/null +++ b/makefiles/nmake/compiler.mk @@ -0,0 +1,56 @@ +# sets compiler settings +# +# requires: +# - INCLUDE_DIRS +# +# provides: +# - BIN_OBJS: the object files we need for the binaries (containing the main) +# + +# /EHsc: enable C++ exception handling + +# compilation flags and compilers +COMMON_COMPILE_FLAGS = /MD /nologo /c $(INCLUDE_DIRS) + +COMPILE_FLAGS = $(COMMON_COMPILE_FLAGS) + +CCPP_COMPILE_FLAGS = $(COMMON_COMPILE_FLAGS) /EHsc + +CFLAGS = $(COMPILE_FLAGS) $(PLATFORM_COMPILE_FLAGS) $(DEBUGLEVELFLAGS) +CCPPFLAGS = $(CCPP_COMPILE_FLAGS) $(PLATFORM_COMPILE_FLAGS) $(DEBUGLEVELFLAGS) +CC = cl.exe +CCPP = cl.exe + +LDFLAGS = /nologo $(LDFLAGS_DIR) +LIBS = $(LIBS_DIR) +LINK = link.exe +CCPP_LINK = link.exe + +.SUFFIXES: .c .cpp .obj .exe + +.c.obj: + $(CC) $(CFLAGS) $< + +.cpp.obj: + $(CCPP) $(CCPPFLAGS) $< + +.obj.exe: + $(CCPP_LINK) $(LDFLAGS) /out:$@ $< $(OBJS) + +#%$(EXE): %.o $(OBJS) +# $(CCPP_LINK) -o $@ $(LIBS) $(OBJS) $< + +#%.sho : %.c +# $(CC) -c -o $@ -fPIC -DSHARED $(CFLAGS) $< + +#%$(SO) : %.sho $(OBJS) +# $(LINK) -shared -o $@ $(LDFLAGS) $(LIBS) $(OBJS) $< + +#%.sho++ : %.cpp +# $(CCPP) -c -o $@ -fPIC -DSHARED $(CCPPFLAGS) $< + +#%$(SO) : %.sho++ $(OBJS) $(CPPOBJS) +# $(CCPP_LINK) -shared -o $@ $(LDFLAGS) $(LIBS) $(OBJS) $(CPPOBJS) $< + +#BIN_OBJS = $(BINS:$(EXE)=.o) +#CPP_BIN_OBJS = $(CPP_BINS:$(EXE)=.o) |