part 2 of Benjamin's Windows patches - forgot to add new files last time
This commit is contained in:
24
cole/Makefile.bc
Normal file
24
cole/Makefile.bc
Normal 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
21
cole/Makefile.vc
Normal 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
12
cole/version.win32.c
Normal 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";
|
Reference in New Issue
Block a user