forked from uboborov/EFM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.win
101 lines (79 loc) · 1.86 KB
/
Makefile.win
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# SlickEdit generated file. Do not edit this file except in designated areas.
# Make command to use for dependencies
MAKE=make
RM=rm
MKDIR=mkdir
# -----Begin user-editable area-----
# -----End user-editable area-----
# If no configuration is specified, "Debug" will be used
ifndef CFG
CFG=Debug
endif
#
# Configuration: Debug
#
ifeq "$(CFG)" "Debug"
OUTDIR=Debug
OUTFILE=$(OUTDIR)/EFM.exe
CFG_INC=
CFG_LIB=
CFG_OBJ=
COMMON_OBJ=$(OUTDIR)/cport.o $(OUTDIR)/dav.o $(OUTDIR)/EFM.o \
$(OUTDIR)/efm_c.o
OBJ=$(COMMON_OBJ) $(CFG_OBJ)
ALL_OBJ=$(OUTDIR)/cport.o $(OUTDIR)/dav.o $(OUTDIR)/EFM.o \
$(OUTDIR)/efm_c.o
COMPILE=gcc -c -g -o "$(OUTDIR)/$(*F).o" $(CFG_INC) "$<"
LINK=gcc -g -o "$(OUTFILE)" $(OBJ) $(CFG_LIB)
# Pattern rules
$(OUTDIR)/%.o : %.c
$(COMPILE)
# Build rules
all: $(OUTFILE)
$(OUTFILE): $(OUTDIR) $(OBJ)
$(LINK)
$(OUTDIR):
$(MKDIR) -p "$(OUTDIR)"
# Rebuild this project
rebuild: cleanall all
# Clean this project
clean:
$(RM) -f $(OUTFILE)
$(RM) -f $(OBJ)
# Clean this project and all dependencies
cleanall: clean
endif
#
# Configuration: Release
#
ifeq "$(CFG)" "Release"
OUTDIR=Release
OUTFILE=$(OUTDIR)/EFM.exe
CFG_INC=
CFG_LIB=
CFG_OBJ=
COMMON_OBJ=$(OUTDIR)/cport.o $(OUTDIR)/dav.o $(OUTDIR)/EFM.o \
$(OUTDIR)/efm_c.o
OBJ=$(COMMON_OBJ) $(CFG_OBJ)
ALL_OBJ=$(OUTDIR)/cport.o $(OUTDIR)/dav.o $(OUTDIR)/EFM.o \
$(OUTDIR)/efm_c.o
COMPILE=gcc -c -o "$(OUTDIR)/$(*F).o" $(CFG_INC) "$<"
LINK=gcc -o "$(OUTFILE)" $(OBJ) $(CFG_LIB)
# Pattern rules
$(OUTDIR)/%.o : %.c
$(COMPILE)
# Build rules
all: $(OUTFILE)
$(OUTFILE): $(OUTDIR) $(OBJ)
$(LINK)
$(OUTDIR):
$(MKDIR) -p "$(OUTDIR)"
# Rebuild this project
rebuild: cleanall all
# Clean this project
clean:
$(RM) -f $(OUTFILE)
$(RM) -f $(OBJ)
# Clean this project and all dependencies
cleanall: clean
endif