Files
cc65/src/od65/make/gcc.mak
cuz 91dac51780 Use __attribute ((unused)) instead of -Wno-unused-parameter
git-svn-id: svn://svn.cc65.org/cc65/trunk@988 b7a2c559-68d2-44c3-8de9-860c34a00d81
2001-09-30 22:19:39 +00:00

55 lines
810 B
Makefile

#
# Makefile for the od65 object file dump utility
#
# Library dir
COMMON = ../common
CFLAGS = -O2 -g -Wall -W -I$(COMMON)
CC=gcc
EBIND=emxbind
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)
@if [ $(OS2_SHELL) ] ; then $(EBIND) $(EXE) ; fi
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