dataworks$(EXEC_SUFFIX): $(OBJS) $(LINK_LIB)
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(LINK_LIB)
+dataworks.res: dataworks.rc
+ $(WINDRES) ./dataworks.rc -O coff -o ./dataworks.res
+
.c.o:
$(CC) -I../Library $(CFLAGS) -c -o $@ $<
clean:
- rm -f *.o dataworks *.exe *.dos *.dos4g *.com
+ rm -f *.o dataworks *.exe *.com *.res
--- /dev/null
+id ICON "../dataworks.ico"
+VS_VERSION_INFO VERSIONINFO
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "000004b0"
+ BEGIN
+ VALUE "ProductName", "DataWorks\0"
+ END
+ END
+END
+
SHCC = i686-w64-mingw32-gcc
AR = i686-w64-mingw32-ar
RANLIB = i686-w64-mingw32-ranlib
+WINDRES = i686-w64-mingw32-windres
LIB_PREFIX =
LIB_SUFFIX = .dll
EXEC_SUFFIX = .exe
PLATFORM_M = i686
PLATFORM_P = i686
LDFLAGS += -Wl,--out-implib,./dataworks.lib
+LINK_LIB += dataworks.res
SHCC = x86_64-w64-mingw32-gcc
AR = x86_64-w64-mingw32-ar
RANLIB = x86_64-w64-mingw32-ranlib
+WINDRES = x86_64-w64-mingw32-windres
LIB_PREFIX =
LIB_SUFFIX = .dll
EXEC_SUFFIX = .exe
PLATFORM_M = x86_64
PLATFORM_P = x86_64
LDFLAGS += -Wl,--out-implib,./dataworks.lib
+LINK_LIB += dataworks.res
AR = ar
AR_ARGS = rcs \$$@
RANLIB = ranlib
+WINDRES = windres
CFLAGS = -g -std=c99 -D_DEFAULT_SOURCE
LDFLAGS = -L`pwd`/Library
LIBS =
# $Id$
-COMPILE_FLAGS = CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" LIBS="$(LIBS)" LIB_PREFIX="$(LIB_PREFIX)" LIB_SUFFIX="$(LIB_SUFFIX)" EXEC_SUFFIX="$(EXEC_SUFFIX)" PLATFORM_M="$(PLATFORM_M)" PLATFORM_P="$(PLATFORM_P)" STATICLIB_PREFIX="$(STATICLIB_PREFIX)" STATICLIB_SUFFIX="$(STATICLIB_SUFFIX)" AR="$(AR)" RANLIB="$(RANLIB)" SHCC="$(SHCC)" LINK_LIB="$(LINK_LIB)" AR_ARGS="$(AR_ARGS)"
+COMPILE_FLAGS = CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" LIBS="$(LIBS)" LIB_PREFIX="$(LIB_PREFIX)" LIB_SUFFIX="$(LIB_SUFFIX)" EXEC_SUFFIX="$(EXEC_SUFFIX)" PLATFORM_M="$(PLATFORM_M)" PLATFORM_P="$(PLATFORM_P)" STATICLIB_PREFIX="$(STATICLIB_PREFIX)" STATICLIB_SUFFIX="$(STATICLIB_SUFFIX)" AR="$(AR)" RANLIB="$(RANLIB)" SHCC="$(SHCC)" LINK_LIB="$(LINK_LIB)" AR_ARGS="$(AR_ARGS)" WINDRES="$(WINDRES)"
.PHONY: all no-doc replace format clean ./Library ./Client ./Document archive archive-prepare archive-cleanup archive-targz archive-zip dosbox prepare-dosbox dosbox-x cleanup-dosbox