aboutsummaryrefslogtreecommitdiff
path: root/mkfontscale
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2009-07-12 18:20:04 +0000
committermarha <marha@users.sourceforge.net>2009-07-12 18:20:04 +0000
commitda8fe31a7ba4acf109097d5696ad0145b991cdfd (patch)
tree1c74d6f075702a73e557872f2a6f020ea4eb5432 /mkfontscale
parent6590f805a12779909cb8504c230fa367148fe38c (diff)
parent529dcfd0858d75cb3c87c73cb0f81dd20bbb9230 (diff)
downloadvcxsrv-da8fe31a7ba4acf109097d5696ad0145b991cdfd.tar.gz
vcxsrv-da8fe31a7ba4acf109097d5696ad0145b991cdfd.tar.bz2
vcxsrv-da8fe31a7ba4acf109097d5696ad0145b991cdfd.zip
Changes for VC compilation
Diffstat (limited to 'mkfontscale')
-rw-r--r--mkfontscale/hash.h4
-rw-r--r--mkfontscale/makefile28
2 files changed, 32 insertions, 0 deletions
diff --git a/mkfontscale/hash.h b/mkfontscale/hash.h
index a2ed3390b..d036a4567 100644
--- a/mkfontscale/hash.h
+++ b/mkfontscale/hash.h
@@ -24,6 +24,10 @@
#ifndef _MKS_HASH_H_
#define _MKS_HASH_H_ 1
+#ifdef _MSC_VER
+#define strcasecmp _stricmp
+#endif
+
typedef struct _HashBucket {
char *key;
char *value;
diff --git a/mkfontscale/makefile b/mkfontscale/makefile
new file mode 100644
index 000000000..7f7baa374
--- /dev/null
+++ b/mkfontscale/makefile
@@ -0,0 +1,28 @@
+WINAPP = mkfontscale
+
+DEFINES += _BSD_SOURCE
+
+INCLUDES += $(MHMAKECONF)\freetype\include
+
+INCLUDELIBFILES = \
+ $(MHMAKECONF)\zlib\$(OBJDIR)\libz.lib \
+ $(MHMAKECONF)\libXfont\src\fontfile\$(OBJDIR)\libfontfile.lib \
+ $(MHMAKECONF)\libXfont\src\util\$(OBJDIR)\libutil.lib \
+ $(MHMAKECONF)\libfontenc\src\$(OBJDIR)\libfontenc.lib
+
+LIBDIRS=$(dir $(INCLUDELIBFILES))
+
+load_makefile $(LIBDIRS:%$(OBJDIR)\=%makefile MAKESERVER=$(MAKESERVER) DEBUG=$(DEBUG);)
+
+CSRCS = hash.c \
+ ident.c \
+ list.c \
+ mkfontscale.c
+
+ifeq ($(DEBUG),1)
+LINKLIBS += $(MHMAKECONF)\freetype\lib\freetype200b8MT_D.lib
+else
+LINKLIBS += $(MHMAKECONF)\freetype\lib\freetype200b8MT.lib
+endif
+
+