Same commit message from previous commit applies to this one, I forgot to do

'commit -a' to stage them all ....
This commit is contained in:
2011-07-31 10:51:52 -04:00
parent 0ad3996104
commit 8a3e3bffb1
3 changed files with 154 additions and 140 deletions

View File

@@ -2,19 +2,25 @@ CC=gcc
LD=gcc
EXECOBJ=
LIBOBJECTS=src/exclib.o
DEMOS=demo/single.exe demo/twolevel.exe demo/threelevel.exe demo/trypair.exe
DEMOS=demo/single.exe demo/twolevel.exe demo/threelevel.exe demo/trypair.exe demo/catchgroup.exe demo/finally.exe demo/default.exe demo/helpers.exe demo/deepuncaught.exe
LIBTARGET=lib/libexc.a
LIBS=
CFLAGS=
all: $(LIBTARGET) $(DEMOS)
all: lib demo
demo/%.exe: demo/%.o
demo/%.exe: demo/%.o lib
$(LD) -o $@ $(CFLAGS) -L./lib $< -lexc -ggdb -gstabs
%.o: %.c
$(CC) -c -o $@ $(CFLAGS) -ggdb -gstabs -I./include $<
.PHONY: demo
demo: $(DEMOS)
.PHONY: lib
lib: $(LIBTARGET)
$(LIBTARGET): $(LIBOBJECTS)
ar rcs $(LIBTARGET) $(LIBOBJECTS)