summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorトトも <85485984+ElectronicsArchiver@users.noreply.github.com>2022-04-16 20:18:56 +0200
committerGitHub <noreply@github.com>2022-04-16 14:18:56 -0400
commit33cc3b9dd7bf3dae1c6cf86e46bb4923f96e7fff (patch)
tree02fb808d19aee560ac9d381ca5a52509881cdd44 /Makefile
parent8f5a73a6585bd425807430fd80ce1e3a737f4c5f (diff)
downloadbfs-33cc3b9dd7bf3dae1c6cf86e46bb4923f96e7fff.tar.xz
Source / Include Folder (#88)
Moved Source Files Into `src` Folder
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 466dcd1..4ead32c 100644
--- a/Makefile
+++ b/Makefile
@@ -232,7 +232,10 @@ tests/xtimegm: xtime.o tests/xtimegm.o
$(BIN_GOALS):
+$(CC) $(ALL_LDFLAGS) $^ $(ALL_LDLIBS) -o $@
-%.o: %.c .flags
+%.o: src/%.c .flags
+ $(CC) $(ALL_CFLAGS) -c $< -o $@
+
+tests/%.o: tests/%.c .flags
$(CC) $(ALL_CFLAGS) -c $< -o $@
# Need a rule for .flags to convince make to apply the above pattern rule if