Mercurial > repos > simple16
view Makefile @ 5:18b66690ae13
Removed redundant definitino of some exception register instructinos in spec
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 26 Mar 2016 23:30:50 -0700 |
parents | 7e44f7d5810b |
children | 74a6d629b78f |
line wrap: on
line source
ifdef DEBUG CFLAGS:=-ggdb $(CFLAGS) LDFLAGS:=-ggdb $(LDFLAGS) TARGETDIR:=debug else CFLAGS:=-O2 TARGETDIR:=release endif #DEBUG all : $(TARGETDIR)/s16 $(TARGETDIR)/s16 : $(TARGETDIR)/main.o $(TARGETDIR)/cpu.o $(CC) -o $@ $^ $(LDFLAGS) $(TARGETDIR)/%.o : src/%.c $(CC) $(CFLAGS) -c -o $@ $<