Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #107.70K
~240 People Reached
Favorite Forums
Favorite Tags
c x 1

1 Posted Topic

Member Avatar for beanryu

You should try this: CC= whathever gcc LDFLAGS= whathever ldflags etc... SOURCES=$(wildcard *.c) EXECUTABLES=$(SOURCES:%.c=%) all: $(EXECUTABLES) [INDENT] echo "Done"[/INDENT] clean: [INDENT]rm -f $(EXECUTABLES)[/INDENT] That should work, because the rule all: $(EXECUTABLES) is expanded and $(EXECUTABLES) references to all the executable files (to be created!). Also make knows the default rule …

Member Avatar for er_mv
0
240

The End.