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
1 Posted Topic
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 …
The End.
er_mv