part 2 of Benjamin's Windows patches - forgot to add new files last time

This commit is contained in:
vdvo
2002-05-27 16:59:54 +00:00
parent 79fe4b68df
commit d1d97c3b73
9 changed files with 205 additions and 0 deletions

24
cole/Makefile.bc Normal file
View File

@@ -0,0 +1,24 @@
# -w-8008 Disable warning "Condition is always true"
# -q Disable copyright message
#CFLAGS_DEBUG = -y -v
CFLAGS = -w-8008 -q -DWIN32=1 -I.. $(CFLAGS_DEBUG)
OBJECTS = cole.obj internal.obj oledecod.obj olecod.obj support.obj version.obj
all: cole.h cole.lib
clean:
-del *.obj
-del *.lib
cole.lib: $(OBJECTS)
tlib cole.lib -+$(OBJECTS: = -+)
version.obj: version.win32.c
$(CC) $(CFLAGS) -DCOMPILER=BC++ -c -o$@ $?
cole.h: cole.h.in
copy $? $@
# eof

21
cole/Makefile.vc Normal file
View File

@@ -0,0 +1,21 @@
CFLAGS = /nologo /DWIN32=1 /I..
OBJECTS = cole.obj internal.obj oledecod.obj olecod.obj support.obj version.obj
all: cole.h cole.lib
clean:
-del *.obj
-del *.lib
cole.lib: $(OBJECTS)
lib /OUT:cole.lib $(OBJECTS)
version.obj: version.win32.c
$(CC) $(CFLAGS) /DCOMPILER=BC++ /c /Fo$@ version.win32.c
cole.h: cole.h.in
copy $? $@
# eof

12
cole/version.win32.c Normal file
View File

@@ -0,0 +1,12 @@
int cole_major_version = 2;
int cole_minor_version = 0;
int cole_micro_version = 2;
char * cole_version = "2.0.2";
#ifndef COMPILER
#error Define the COMPILER macro
#endif
#define STRINGIFY_SUB(s) #s
#define STRINGIFY(s) STRINGIFY_SUB(s)
char * cole_host_info = STRINGIFY(COMPILER) ": i686, Microsoft, Win32";