Skip to content
Browse files

Add symlink for "lcc" into root directory.

  • Loading branch information...
1 parent c33e7b6 commit 6015f96f2448bf72dce5da77ea6770299d37ebe3 @nominolo committed
Showing with 6 additions and 2 deletions.
  1. +1 −0 .gitignore
  2. +5 −2 Makefile
View
1 .gitignore
@@ -121,6 +121,7 @@ utils/print_config
# Auto-generated files
compiler/Opcodes.h
interp
+lcc
dist/
dump.s
_T*.*
View
7 Makefile
@@ -31,7 +31,7 @@ DEPDIR = $(DIST)/.deps
DEPDIRS = $(DEPDIR) $(DEPDIR)/rts
.PHONY: all
-all: interp compiler/Opcodes.h $(LCC)
+all: interp compiler/Opcodes.h $(LCC) lcc
.PHONY: boot
boot:
@@ -69,6 +69,9 @@ interp: $(SRCS:.c=.o)
@echo "LINK $^ => $@"
@$(CC) -Wl,-no_pie -o $@ $^
+lcc: $(LCC)
+ ln -s $(LCC) $@
+
# Building a C file automatically generates dependencies as a side
# effect. This only works with `gcc'.
#
@@ -137,7 +140,7 @@ clean-interp:
.PHONY: clean
clean:
rm -f $(SRCS:%.c=%.o) utils/*.o interp compiler/.depend \
- compiler/lcc
+ compiler/lcc lcc
rm -rf $(HSBUILDDIR)
$(MAKE) -C tests clean

0 comments on commit 6015f96

Please sign in to comment.
Something went wrong with that request. Please try again.