Files
Pegasys-RomWBW/Tools/hex2bin/MAKEFILE
2014-08-30 20:09:07 +00:00

37 lines
564 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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)