mirror of
https://github.com/reactos/reactos.git
synced 2024-10-30 11:35:58 +00:00
435a566751
* sumatrapdf - vendor import * everything compiles (libjpeg, poppler, fitz, sumatrapdf) * does NOT link (remove the comment tags in the parent directory.rbuild file (rosapps dir) to build it) svn path=/trunk/; revision=29295
77 lines
1.8 KiB
Plaintext
77 lines
1.8 KiB
Plaintext
OUTDIR=obj-dummy
|
|
CC=cl.exe
|
|
|
|
VALID_TARGET=no
|
|
|
|
!if "$(TARGET)"=="rel"
|
|
OUTDIR=obj-win-rel
|
|
CFLAGS = $(CFLAGS) /D "NDEBUG" /D "_SECURE_CSL=0" /MD /Ox
|
|
LDFLAGS = $(LDFLAGS) /OPT:NOWIN98
|
|
VALID_TARGET=yes
|
|
!endif
|
|
|
|
!if "$(TARGET)"=="rel-unicode"
|
|
OUTDIR=obj-win-rel-unicode
|
|
CFLAGS = $(CFLAGS) /D "NDEBUG" /D "_SECURE_CSL=0" /D "UNICODE" /MD /Ox
|
|
LDFLAGS = $(LDFLAGS) /OPT:NOWIN98
|
|
VALID_TARGET=yes
|
|
!endif
|
|
|
|
!if "$(TARGET)"=="dbg"
|
|
OUTDIR=obj-win-dbg
|
|
CFLAGS = $(CFLAGS) /D "_SECURE_CSL=0" /MDd /Od
|
|
VALID_TARGET=yes
|
|
!endif
|
|
|
|
!if "$(TARGET)"=="dbg-unicode"
|
|
OUTDIR=obj-win-dbg-unicode
|
|
CFLAGS = $(CFLAGS) /D "_SECURE_CSL=0" /D "UNICODE" /MDd /Od
|
|
VALID_TARGET=yes
|
|
!endif
|
|
|
|
O=$(OUTDIR)
|
|
CFLAGS = $(CFLAGS) /nologo /c
|
|
CFLAGS = $(CFLAGS) /D "WIN32" /D "_WIN32_WINNT=0x0500"
|
|
CFLAGS = $(CFLAGS) /W3 /Zc:forScope /Zc:wchar_t /GR /Zi
|
|
CFLAGS = $(CFLAGS) /I.
|
|
|
|
LIBS = $(LIBS) kernel32.lib advapi32.lib comctl32.lib comdlg32.lib \
|
|
shell32.lib user32.lib gdi32.lib
|
|
|
|
LD = link.exe
|
|
LDFLAGS = $(LDFLAGS) /nologo /DEBUG
|
|
|
|
TEST_FILE_UTIL_OBJS=$(O)\base_util.obj $(O)\file_util.obj $(O)\geom_util.obj \
|
|
$(O)\prefs_util.obj $(O)\netstr.obj $(O)\str_util.obj $(O)\WinUtil.obj \
|
|
$(O)\win_util.obj $(O)\wstr_util.obj \
|
|
$(O)\test_file_util.obj
|
|
TEST_FILE_UTIL_EXE=$(O)\test_file_util.exe
|
|
TEST_FILE_UTIL_PDB=$(O)\test_file_util.pdb
|
|
|
|
!if "$(VALID_TARGET)"=="yes"
|
|
all: $(OUTDIR) $(TEST_FILE_UTIL_EXE)
|
|
|
|
$(OUTDIR): force
|
|
@if not exist $(OUTDIR) mkdir $(OUTDIR)
|
|
|
|
clean: force
|
|
-rmdir /S /Q $(OUTDIR)
|
|
!else
|
|
all clean: force
|
|
@echo TARGET must be set to: rel, dbg, rel-unicode or dbg-unicode
|
|
!endif
|
|
|
|
$(TEST_FILE_UTIL_EXE): $(TEST_FILE_UTIL_OBJS)
|
|
$(LD) $(LDFLAGS) /OUT:$@ \
|
|
/PDB:$(TEST_FILE_UTIL_PDB) \
|
|
$** $(LIBS) /SUBSYSTEM:CONSOLE /MACHINE:X86
|
|
|
|
.cpp{$(OUTDIR)}.obj::
|
|
$(CC) $(CFLAGS) -Fo$(OUTDIR)\ $<
|
|
|
|
.c{$(OUTDIR)}.obj::
|
|
$(CC) $(CFLAGS) -Fo$(OUTDIR)\ $<
|
|
|
|
force: ;
|
|
|