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