Updated the build files to use $(xCP), allows use of mcopy to a mtools disk
[tpg/acess2.git] / Usermode / Applications / ifconfig_src / Makefile
1 # Project: ifconfig\r
2 \r
3 -include ../Makefile.cfg\r
4 \r
5 COBJ = main.o
6 BIN = ../ifconfig\r
7 \r
8 CFLAGS  += -Wall -fno-builtin -fno-stack-protector\r
9 LDFLAGS += \r
10 \r
11 .PHONY : all clean\r
12 \r
13 all: $(BIN)\r
14 \r
15 $(BIN): $(COBJ)\r
16         @echo --- $(LD) -o $@\r
17         @$(LD) $(LDFLAGS) -o $@ $(COBJ) -Map Map.txt\r
18         @objdump -d $(BIN) > $(BIN).dsm\r
19         $(xCP) $(BIN) $(DISTROOT)/Bin/
20 \r
21 clean:\r
22         @$(RM) $(COBJ) $(BIN) $(BIN).dsm Map.txt
23 \r
24 $(COBJ): %.o: %.c\r
25         @echo --- GCC -o $@
26         @$(CC) $(CFLAGS) -c $? -o $@
27 \r

UCC git Repository :: git.ucc.asn.au