Menu

[r558]: / make / common.mak  Maximize  Restore  History

Download this file

71 lines (53 with data), 1.2 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
!ifndef BIN
BIN = $(ROOT)\bin
!endif
!ifndef BUILD
BUILD = .
!endif
!ifndef LIBRARY
LIBRARY = $(ROOT)\lib
!endif
!ifndef INCLUDE
INCLUDE = -I$(ROOT)\include
!else
INCLUDE = $(INCLUDE) -I$(ROOT)\include
!endif
!ifndef UPDATE_VERSION
UPDATE_VERSION = $(BIN)\update_version.exe
!endif
LIB = $(LIB);$(LIBRARY)\$(O)
!ifndef S
S=.
!endif
!ifndef O
O=.
!endif
# set NODEBUG _before_ win32.mak
!ifndef DEBUG
NODEBUG=yes
!endif
!include <win32.mak>
OUTDIR=$(O)
# any modifications to the flags should go _after_ win32.mak
!ifdef UNICODE
cflags = $(cflags) -DUNICODE -D_UNICODE
!endif
cflags = $(cflags) -D_CRT_NON_CONFORMING_SWPRINTFS -D_CRT_SECURE_NO_DEPRECATE
all: init $(TARGET)
init:
@if not exist $(O) mkdir $(O)
clean: _make-clean_
del $(TARGET) $(OBJ)
$(CLEANUP)
debug:
$(MAKE) DEBUG=YES UNICODE=YES
unicode:
$(MAKE) UNICODE=YES
release:
$(MAKE)
{$(S)}.cpp{$(O)}.obj:
$(cc) $(cflags) $(cvarsmt) $(cdebug) /WX /Fo$@ $<
{$(S)}.c{$(O)}.obj:
$(cc) $(cflags) $(cvarsmt) $(cdebug) /WX /Fo$@ $<
{$(S)}.rc{$(O)}.res:
$(rc) $(rcvars) $(rcflags) /fo $@ $<
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.