2 # gcc Makefile for sim65
8 CFLAGS = -g -O2 -Wall -W -I$(COMMON)
25 LIBS = $(COMMON)/common.a
30 ifeq (.depend,$(wildcard .depend))
35 @$(MAKE) -f make/gcc.mak all
39 sim65: $(OBJS) $(LIBS)
40 $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) -ldl
41 @if [ $(OS2_SHELL) ] ; then $(EBIND) $@ ; fi
45 @$(MAKE) -C chips -f make/gcc.mak
49 @$(MAKE) -C chips -f make/gcc.mak clean
53 @$(MAKE) -C chips -f make/gcc.mak zap
54 rm -f *.o $(EXECS) .depend
56 # ------------------------------------------------------------------------------
57 # Make the dependencies
60 depend dep: $(OBJS:.o=.c)
61 @echo "Creating dependency information"
62 $(CC) -I$(COMMON) -MM $^ > .depend