diff options
| -rw-r--r-- | Makefile | 18 | ||||
| -rw-r--r-- | common.mak | 6 | ||||
| -rw-r--r-- | examples/nq/Makefile | 2 | ||||
| -rw-r--r-- | graphviz_codegen.c | 2 | ||||
| -rw-r--r-- | graphviz_codegen.h | 2 | ||||
| -rw-r--r-- | lex.l | 2 | ||||
| -rw-r--r-- | llvm_codegen.c | 2 | ||||
| -rw-r--r-- | llvm_codegen.h | 2 | ||||
| -rw-r--r-- | parse.y | 2 | ||||
| -rw-r--r-- | sinc.c (renamed from sinter.c) | 2 | ||||
| -rw-r--r-- | sinc.h (renamed from sinter.h) | 0 | ||||
| -rw-r--r-- | sinter_codegen.c | 2 | ||||
| -rw-r--r-- | sinter_codegen.h | 2 |
13 files changed, 22 insertions, 22 deletions
@@ -22,26 +22,26 @@ LDLIBS += $(shell llvm-config --libs $(LLVM_MODULES) --system-libs) default: all -all: sinter +all: sinc install: all $(INSTALL) -d $(PREFIX)/bin/ - $(INSTALL) sinter $(PREFIX)/bin/ + $(INSTALL) sinc $(PREFIX)/bin/ uninstall: - $(RM) $(PREFIX)/bin/sinter + $(RM) $(PREFIX)/bin/sinc -sinter.o: sinter.h parse.h debug.h error.h scope.h llvm_codegen.h \ +sinc.o: sinc.h parse.h debug.h error.h scope.h llvm_codegen.h \ graphviz_codegen.h -llvm_codegen.o: llvm_codegen.h sinter.h scope.h debug.h parse.h error.h +llvm_codegen.o: llvm_codegen.h sinc.h scope.h debug.h parse.h error.h sinter_codegen.o: sinter_codegen.h parse.h graphviz_codegen.o: graphviz_codegen.h parse.h error.h -parse.o: sinter.h -lex.o: sinter.h parse.h +parse.o: sinc.h +lex.o: sinc.h parse.h scope.o: scope.h error.h debug.h common.o: debug.h -sinter: sinter.o parse.o lex.o scope.o llvm_codegen.o sinter_codegen.o \ +sinc: sinc.o parse.o lex.o scope.o llvm_codegen.o sinter_codegen.o \ graphviz_codegen.o $(LINK.cc) $(OUTPUT_OPTION) $^ $(LDLIBS) @@ -61,4 +61,4 @@ lex.o: lex.c $(YACC) -o $@ $< clean: - $(RM) sinter *.tab.* *.o lex.c parse.c parse.h + $(RM) sinc *.tab.* *.o lex.c parse.c parse.h @@ -1,8 +1,8 @@ -LLC ?= clang -SINC ?= sinter +LLC ?= llc +SINC ?= sinc %.o: %.ll - $(LLC) -c $(LLCFLAGS) -o $@ $< + $(LLC) -filetype obj $(LLCFLAGS) -o $@ $< %.ll: %.sin $(SINC) -l $(SINCFLAGS) -o $@ $< diff --git a/examples/nq/Makefile b/examples/nq/Makefile index 719acc2..3939123 100644 --- a/examples/nq/Makefile +++ b/examples/nq/Makefile @@ -7,7 +7,7 @@ CFLAGS = $(DEBUG) -Werror -Wpedantic -Wall -I$(HOME)/usr/include LDFLAGS = $(DEBUG) -L$(HOME)/usr/lib LDLIBS = -lgc -LLCFLAGS = $(DEBUG) -Werror -Wpedantic -Wall +LLCFLAGS = -O0 SINCFLAGS = -u never -w 32 TRGT = nqueens diff --git a/graphviz_codegen.c b/graphviz_codegen.c index 4e94483..bbb29a1 100644 --- a/graphviz_codegen.c +++ b/graphviz_codegen.c @@ -2,7 +2,7 @@ #include <stdlib.h> #include "graphviz_codegen.h" -#include "sinter.h" +#include "sinc.h" #include "parse.h" #include "error.h" diff --git a/graphviz_codegen.h b/graphviz_codegen.h index 6fae8d5..72a9698 100644 --- a/graphviz_codegen.h +++ b/graphviz_codegen.h @@ -1,7 +1,7 @@ #ifndef GRAPHVIZ_CODEGEN_H #define GRAPHVIZ_CODEGEN_H -#include "sinter.h" +#include "sinc.h" void graphviz_codegen_prologue(); void graphviz_codegen(sexpr *ast); @@ -8,7 +8,7 @@ #include <string.h> #include "sexpr.h" -#include "sinter.h" +#include "sinc.h" #include "parse.h" void yyerror(const char *s, ...); diff --git a/llvm_codegen.c b/llvm_codegen.c index 1e6ce93..2789345 100644 --- a/llvm_codegen.c +++ b/llvm_codegen.c @@ -12,7 +12,7 @@ #include <llvm-c/DebugInfo.h> #include "llvm_codegen.h" -#include "sinter.h" +#include "sinc.h" #include "scope.h" #include "debug.h" #include "parse.h" diff --git a/llvm_codegen.h b/llvm_codegen.h index 70d116d..5e30b18 100644 --- a/llvm_codegen.h +++ b/llvm_codegen.h @@ -1,7 +1,7 @@ #ifndef LLVM_CODEGEN_H #define LLVM_CODEGEN_H -#include "sinter.h" +#include "sinc.h" typedef enum { ALWAYS_BOX, @@ -7,7 +7,7 @@ #include <stdlib.h> #include "sexpr.h" -#include "sinter.h" +#include "sinc.h" extern int yylineno; int yylex(void); @@ -4,7 +4,7 @@ #include <string.h> #include <unistd.h> -#include "sinter.h" +#include "sinc.h" #include "sexpr.h" #include "llvm_codegen.h" #include "sinter_codegen.h" diff --git a/sinter_codegen.c b/sinter_codegen.c index 56930df..b4a15a3 100644 --- a/sinter_codegen.c +++ b/sinter_codegen.c @@ -2,7 +2,7 @@ #include <stdlib.h> #include "sinter_codegen.h" -#include "sinter.h" +#include "sinc.h" #include "parse.h" #include "error.h" diff --git a/sinter_codegen.h b/sinter_codegen.h index e0a0737..98d579f 100644 --- a/sinter_codegen.h +++ b/sinter_codegen.h @@ -1,7 +1,7 @@ #ifndef SINTER_CODEGEN_H #define SINTER_CODEGEN_H -#include "sinter.h" +#include "sinc.h" void sinter_codegen_prologue(); void sinter_codegen(sexpr *ast); |
