]> git.sur5r.net Git - cc65/blobdiff - src/da65/make/gcc.mak
Allow conditional directives within .STRUCT7:UNION and .ENUM
[cc65] / src / da65 / make / gcc.mak
index d0502f70bba749287be89746a9c8ccc08e456b8b..49d4991f434c1a1b44f2596479c60abf1c873225 100644 (file)
@@ -5,19 +5,26 @@
 # Library dir
 COMMON = ../common
 
-CFLAGS = -g -O2 -Wall -I$(COMMON)
+CFLAGS = -g -O2 -Wall -W -I$(COMMON)
 CC=gcc
+EBIND=emxbind
 LDFLAGS=
 
 OBJS =         attrtab.o       \
-       code.o          \
-       cpu.o           \
-       error.o         \
-       global.o        \
+       code.o          \
+       data.o          \
+       error.o         \
+       global.o        \
        handler.o       \
-       main.o          \
+       infofile.o      \
+       main.o          \
+        opc6502.o       \
+        opc65816.o      \
+        opc65c02.o      \
+        opc65sc02.o     \
        opctable.o      \
-       output.o        
+       output.o        \
+       scanner.o
 
 LIBS = $(COMMON)/common.a
 
@@ -30,19 +37,20 @@ all : $(EXECS)
 include .depend
 else
 all:   depend
-       @$(MAKE) -f make/gcc.mak all
+       @$(MAKE) -f make/gcc.mak all
 endif
 
 
 
 da65:   $(OBJS) $(LIBS)
        $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
+       @if [ $(OS2_SHELL) ] ;  then $(EBIND) $@ ; fi
 
 clean:
-       rm -f *~ core *.map
+       $(RM) *~ core *.map
 
 zap:   clean
-       rm -f *.o $(EXECS) .depend
+       $(RM) *.o $(EXECS) .depend
 
 
 # ------------------------------------------------------------------------------