2 # gcc Makefile for sim65
8 CFLAGS = -g -O2 -Wall -W -I$(COMMON)
23 LIBS = $(COMMON)/common.a
28 ifeq (.depend,$(wildcard .depend))
33 @$(MAKE) -f make/gcc.mak all
37 sim65: $(OBJS) $(LIBS)
38 $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) -ldl
39 @if [ $(OS2_SHELL) ] ; then $(EBIND) $@ ; fi
43 @$(MAKE) -C chips -f make/gcc.mak
47 @$(MAKE) -C chips -f make/gcc.mak clean
51 @$(MAKE) -C chips -f make/gcc.mak zap
52 rm -f *.o $(EXECS) .depend
54 # ------------------------------------------------------------------------------
55 # Make the dependencies
58 depend dep: $(OBJS:.o=.c)
59 @echo "Creating dependency information"
60 $(CC) -I$(COMMON) -MM $^ > .depend