shithub: scc

Download patch

ref: a2bd26c6ebac0479dfe2240c5af3494cbb3e5f9e
parent: fc1e7dfabe08378fbe519ea8885e836f685c984a
author: Roberto E. Vargas Caballero <[email protected]>
date: Sat Jun 27 07:29:07 EDT 2015

Simplify Makefile in cc1

--- a/cc1/Makefile
+++ b/cc1/Makefile
@@ -2,14 +2,12 @@
 OBJS = types.o decl.o lex.o error.o symbol.o main.o expr.o \
 	code.o stmt.o cpp.o
 
-LIBS = -lcc
-
 all: cc1
 
 $(OBJS) : cc1.h ../inc/cc.h ../inc/sizes.h
 
 cc1: $(OBJS) ../lib/libcc.a
-	$(CC) -L../lib $(LDFLAGS) $(OBJS) $(LIBS) -o $@
+	$(CC) $(LDFLAGS) $(OBJS) ../lib/libcc.a -o $@
 
 clean:
 	rm -f $(OBJS)