Permalink
Browse files

Make use of LDLIBS.

  • Loading branch information...
1 parent 9e3c591 commit 59288661e0a309351f7281c065c57e8062dc3465 @skeeto committed Nov 5, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 Makefile
View
@@ -10,7 +10,7 @@ OBJECTS = $(subst .c,.o,$(SOURCES))
IMAGE = boot.img
-LDFLAGS = -lz -lffi -lltdl -lm -rdynamic
+LDLIBS = -lz -lffi -lltdl -lm -rdynamic
CC = gcc
@@ -36,10 +36,10 @@ bsch: bschsfx $(IMAGE)
chmod +x $@
bsch.preboot: $(OBJECTS) bsch.o $(HEADERS)
- $(CC) $(LDFLAGS) -o $@ $(OBJECTS) bsch.o
+ $(CC) $(LDFLAGS) -o $@ $(OBJECTS) bsch.o $(LDLIBS)
bschsfx: $(OBJECTS) bschsfx.o $(HEADERS)
- $(CC) $(LDFLAGS) -o $@ $(OBJECTS) bschsfx.o
+ $(CC) $(LDFLAGS) -o $@ $(OBJECTS) bschsfx.o $(LDLIBS)
perl padsfx.pl $@
bschsfx.o: bsch.c

0 comments on commit 5928866

Please sign in to comment.