mirror of https://github.com/wwarthen/RomWBW.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
564 B
37 lines
564 B
# makefile for tools
|
|
#
|
|
# Uses DJGCC for Windows -- GCC v. 4.4.4 compiles it
|
|
#
|
|
CC = gcc
|
|
COPT = -O2 -Wall
|
|
RM = del >nul
|
|
CP = copy
|
|
|
|
E = .exe
|
|
O = .o
|
|
|
|
.c$E:
|
|
$(CC) $(COPT) -o $*$E $*.c
|
|
|
|
TOOLS = hex2bin$E bin2hex$E
|
|
HFILES = mytypes.h
|
|
|
|
|
|
all: $(TOOLS)
|
|
|
|
bin2hex$E: hex2bin$E
|
|
$(CP) hex2bin$E bin2hex$E
|
|
|
|
clean:
|
|
$(RM) *$O
|
|
$(RM) hex2bin$E
|
|
$(RM) bin2hex$E
|
|
$(RM) foo*.*
|
|
|
|
spotless: clean
|
|
$(RM) *.bin
|
|
$(RM) *.hex
|
|
|
|
##Dependencies
|
|
hex2bin$E: hex2bin.c $(HFILES)
|
|
|