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
38 sim65: $(OBJS) $(LIBS)
39 $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) -ldl
40 @if [ $(OS2_SHELL) ] ; then $(EBIND) $@ ; fi
46 rm -f *.o $(EXECS) .depend
48 # ------------------------------------------------------------------------------
49 # Make the dependencies
52 depend dep: $(OBJS:.o=.c)
53 @echo "Creating dependency information"
54 $(CC) -I$(COMMON) -MM $^ > .depend