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