diff options
| author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-12-07 20:45:41 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 21:05:36 -0700 |
| commit | a6679a16ee828cfa39853946250ff291537f8634 (patch) | |
| tree | 009ad1c47a797fe39c491b2d7c060a2e0db18886 /Makefile | |
| parent | 8c08c764f0a0e5de5be15fa7b5a1fa49392e7546 (diff) | |
| download | sparse-dev-a6679a16ee828cfa39853946250ff291537f8634.tar.gz | |
Add silly storage handling example.
This one links up the inter-bb usage pseudos to each other
with "storage" structures, which should make it possible to
write a simple code generator that doesn't need to worry
about any global state - all the decisions are local.
There are probably cases where this simply doesn't work, but
I want to try to start generating _some_ code at least.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -9,7 +9,7 @@ LDFLAGS=-g AR=ar PREFIX=$(HOME) -PROGRAMS=test-lexing test-parsing obfuscate check compile test-linearize +PROGRAMS=test-lexing test-parsing obfuscate check compile test-linearize example LIB_H= token.h parse.h lib.h symbol.h scope.h expression.h target.h \ linearize.h bitmap.h ident-list.h compat.h flow.h allocate.h @@ -62,6 +62,9 @@ obfuscate: obfuscate.o $(LIB_FILE) check: check.o $(LIB_FILE) $(CC) $(LDFLAGS) -o $@ $< $(LIBS) +example: example.o $(LIB_FILE) + $(CC) $(LDFLAGS) -o $@ $< $(LIBS) + $(LIB_FILE): $(LIB_OBJS) $(AR) rcs $(LIB_FILE) $(LIB_OBJS) @@ -92,6 +95,7 @@ compile-i386.o: $(LIB_H) compile.h tokenize.o: $(LIB_H) check.o: $(LIB_H) obfuscate.o: $(LIB_H) +example.o: $(LIB_H) compat-linux.o: compat/strtold.c compat/id-files-stat.c compat/mmap-blob.c \ $(LIB_H) |
