aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/buildsys/win/bmake-bcc.inc
blob: 131dc61ea2c33a1c340de2cf97514b6009eb85e4 (plain)
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
!ifdef BCCPATH
INCPATH=$(INCPATH) -I$(BCCPATH)\include 
LIBPATH=$(LIBPATH) -L$(BCCPATH)\lib
!endif

##############################################

OBJPATH=$(OUTPATH)\$(OUTSUB)
TARGETPATH=$(OBJPATH)
TARGET=$(TARGETPATH)\$(OUTNAME).$(EXT)

##############################################
# use precompiled headers

!ifndef PRECOMPILE
CFLAGS=$(CFLAGS) -Hh=flext.h
!else
CFLAGS=$(CFLAGS) -Hh=$(PRECOMPILE)
!endif
# location of precompiled file
CFLAGS=$(CFLAGS) -H=$(OBJPATH)\precompiled.pch

##############################################

LIBS=$(LIBS) cw32.lib import32.lib C0D32.OBJ
CFLAGS=$(CFLAGS) -tWD -tWM -w-8004 -w-8027 -w-8057
LDFLAGS=$(LDFLAGS) /C /Tpd 

##############################################

CFLAGS=$(CFLAGS) $(UFLAGS)

!ifdef DEBUG
CFLAGS=$(CFLAGS) -v -D_DEBUG
LDFLAGS=$(LDFLAGS) /v
!else
CFLAGS=$(CFLAGS) $(OFLAGS) -DNDEBUG
!endif

##############################################
# convert both *.c and *.cpp

OBJSTMP= $(SRCS:.c=.obj)
OBJS= $(OBJSTMP:.objpp=.obj)