blob: 2a86155a62b1b0186834a71e4c6293be611f62ff (
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
|
# 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 $(TARGETPATH)\*.* > nul
-rmdir /q $(TARGETPATH) > nul
##############################################
_install_:
@if not exist $(INSTPATH) mkdir $(INSTPATH) > nul
copy $(TARGET) $(INSTPATH) > nul
|