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