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