First rudimentary version - can dump xo65 headers

git-svn-id: svn://svn.cc65.org/cc65/trunk@230 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2000-07-29 22:34:15 +00:00
parent a20f4dd8c8
commit 8f320c4ab4
11 changed files with 1040 additions and 0 deletions

52
src/od65/make/gcc.mak Normal file
View File

@@ -0,0 +1,52 @@
#
# Makefile for the od65 object file dump utility
#
# Library dir
COMMON = ../common
CFLAGS = -O2 -g -Wall -I$(COMMON)
CC=gcc
LDFLAGS=
OBJS = dump.o \
error.o \
fileio.o \
global.o \
main.o
LIBS = $(COMMON)/common.a
EXE = od65
.PHONY: all
ifeq (.depend,$(wildcard .depend))
all: $(EXE)
include .depend
else
all: depend
@$(MAKE) -f make/gcc.mak all
endif
$(EXE): $(OBJS)
$(CC) $(LDFLAGS) -o $(EXE) $(CFLAGS) $(OBJS) $(LIBS)
clean:
rm -f *~ core *.map
zap: clean
rm -f *.o $(EXE) .depend
# ------------------------------------------------------------------------------
# Make the dependencies
.PHONY: depend dep
depend dep: $(OBJS:.o=.c)
@echo "Creating dependency information"
$(CC) -I$(COMMON) -MM $^ > .depend