-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile.mak
38 lines (24 loc) · 883 Bytes
/
makefile.mak
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
CC = bcc32
RC = brcc32
AS = tasm32
C_FLAGS = -tW -c -q -w-par -w-rvl
DEF =
DFM = Unit1.dfm Unit2.dfm Unit3.dfm
SRC = application.cpp elements.cpp Project1.cpp Unit1.cpp Unit2.cpp Unit3.cpp
unit_test.exe: unit_test.obj test.obj application.obj elements.obj
$(CC) $(CFLAGS) unit_test.obj test.obj application.obj elements.obj -o unit_test
application.obj: application.h application.cpp
$(CC) $(CFLAGS) -c application.cpp
elements.obj: elements.h elements.cpp
$(CC) $(CFLAGS) -c elements.cpp
test.obj: test.h test.cpp
$(CC) $(CFLAGS) -c test.cpp
clean:
rm -f core *.obj main
#.cpp.obj:
# $(CC) $(CFLAGS) $(SRC)
#Project1.res: Project1.rc
# $(RC) Project1.res
#Project1.exe: Project1.obj $(SRC:.cpp=.obj) $(DFM)
# ILINK32 /aa /Tpe /Gk /t /q -w-dup c0w32.obj $(SRC:.cpp=.obj), Project1.exe,,\
#cw32.lib import32.lib vcl.lib rtl.lib,$(DEF),Project1.res