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
51 rm -f *.o $(EXECS) .depend
53 # ------------------------------------------------------------------------------
54 # Make the dependencies
57 depend dep: $(OBJS:.o=.c)
58 @echo "Creating dependency information"
59 $(CC) -I$(COMMON) -MM $^ > .depend