blob: ae902dcc2a6b7ac5feaa8555ee0cb579660ab4a1 (
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
|
--- a/host-src/tool/Makefile
+++ b/host-src/tool/Makefile
@@ -1,18 +1,13 @@
include ../../Makefile.cfg
-CC = $(HOSTCC)
-CFLAGS = $(HOSTCFLAGS) -DDREAMCAST_IP=\"$(DREAMCAST_IP)\" -DHAVE_GETOPT
-INCLUDE = -I$(BFDINCLUDE)
+CPPFLAGS += -DDREAMCAST_IP=\"$(DREAMCAST_IP)\" -DHAVE_GETOPT
OBJECTS = dc-tool.o syscalls.o
-.c.o:
- $(CC) $(CFLAGS) $(INCLUDE) -o $@ -c $<
-
all: dc-tool
dc-tool: $(OBJECTS)
- $(CC) -o $@ $(OBJECTS) $(BFDLIB)
+ $(CC) $(LDFLAGS) -o $@ $(OBJECTS) $(BFDLIB)
.PHONY : install
install: dc-tool
--- a/Makefile.cfg
+++ b/Makefile.cfg
@@ -8,8 +8,8 @@
# the ones in your system
# these must point to your sh-elf bfd, not the system one
-BFDLIB = -L/usr/local/dcdev/lib -lbfd -liberty
-BFDINCLUDE = /usr/local/dcdev/include
+BFDLIB = -lbfd -liberty
+BFDINCLUDE =
# cygwin
# these must point to your sh-elf bfd, not the system one
@@ -24,7 +24,7 @@
# you generally shouldn't change this unless you are making forked
# versions (or test versions)
-VERFLAGS = -DDCLOAD_VERSION=\"1.0.4\"
+CPPFLAGS += -DDCLOAD_VERSION=\"1.0.4\"
TARGETCFLAGS += $(VERFLAGS)
HOSTCFLAGS += $(VERFLAGS)
|