2 # gcc Makefile for the sim65 chip plugins
8 CFLAGS = -g -O2 -Wall -W -I$(SIM65) -fpic
15 OBJS = $(CHIPS:.so=.o)
18 ifeq (.depend,$(wildcard .depend))
23 @$(MAKE) -f make/gcc.mak all
28 $(CC) $(CFLAGS) -shared -o $@ $^
29 @if [ $(OS2_SHELL) ] ; then $(EBIND) $@ ; fi
35 rm -f *.o $(EXECS) .depend
37 # ------------------------------------------------------------------------------
38 # Make the dependencies
41 depend dep: $(CHIPS:.so=.c)
42 @echo "Creating dependency information"
43 $(CC) -I$(SIM65) -MM $^ > .depend