blob: 252d5d2f59d9268fd1f68bdd054b3990c243455f (
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
45
|
# build class specific settings
INCPATH=$(INCPATH) /I$(FLEXTINC)
LIBPATH=$(LIBPATH) /LIBPATH:$(FLEXTLIB)
LIBS=$(LIBS) $(FLEXTNAME).lib
##############################################
# default target
_build_: $(TARGET)
$(OUTPATH):
if not exist $@ mkdir $@ > nul
$(TARGETPATH): $(OUTPATH)
if not exist $@ mkdir $@ > nul
{$(SRCDIR)}.cpp{}.obj:
cl /c $(CFLAGS) $(DEFS) $(INCPATH) $** /Fo$(TARGETPATH)\$@
{$(SRCDIR)}.c{}.obj:
cl /c $(CFLAGS) $(DEFS) $(INCPATH) $** /Fo$(TARGETPATH)\$@
$(TARGET):: $(TARGETPATH)
$(TARGET):: $(OBJS)
@cd $(TARGETPATH)
link /DLL $(LDFLAGS) $(LIBPATH) $(OBJS) $(LIBS) /out:$(@F)
@cd ..\..
##############################################
# remove build
_clean_:
-del /q $(TARGET) > nul
-cd $(TARGETPATH)
-del /q $(OBJS) > nul
##############################################
$(INSTPATH):
if not exist $@ mkdir $@ > nul
_install_: $(INSTPATH)
copy $(TARGET) $(INSTPATH) > nul
|