Skip to content

Commit

Permalink
Fix our makefile rule so the target binaries are getting linked -g
Browse files Browse the repository at this point in the history
Basically this isn't working right now because BINTARGETS is getting
defined after Make.rules is evaluated.  But there's no actual reason we
need BINTARGETS in the rule, so long as every binary has a %.o object,
which we can make always be true easily enough.

Signed-off-by: Peter Jones <pjones@redhat.com>
  • Loading branch information
vathpela committed Feb 10, 2016
1 parent 68d8132 commit 88c5e96
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Make.rules
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ test :
%.a :
$(AR) -cvqs $@ $^

% : %.c

$(BINTARGETS) : % :
% : %.o
$(CCLD) $(ccldflags) $(CPPFLAGS) -o $@ $^ $(LDLIBS)

%.so :
Expand Down

0 comments on commit 88c5e96

Please sign in to comment.