aboutsummaryrefslogtreecommitdiffstats
path: root/src/fcopy/Makefile
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@protonmail.com>2022-06-30 09:00:15 -0400
committerLibravatar GitHub <noreply@github.com>2022-06-30 09:00:15 -0400
commit70aaf6fea40ac4f4f28094cad639ec4c00897843 (patch)
treeb3013b4abeaf00cde4ab63f90bdc91ef8e6520a9 /src/fcopy/Makefile
parenttest/fs: enable private-lib in firejail.config (diff)
parentmakefiles: add generated files as dependencies (diff)
downloadfirejail-70aaf6fea40ac4f4f28094cad639ec4c00897843.tar.gz
firejail-70aaf6fea40ac4f4f28094cad639ec4c00897843.tar.zst
firejail-70aaf6fea40ac4f4f28094cad639ec4c00897843.zip
Merge pull request #5219 from kmk3/build-reduce-config-files
build: reduce autoconf input files from 32 to 2
Diffstat (limited to 'src/fcopy/Makefile')
-rw-r--r--src/fcopy/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/fcopy/Makefile b/src/fcopy/Makefile
new file mode 100644
index 000000000..ae128df9b
--- /dev/null
+++ b/src/fcopy/Makefile
@@ -0,0 +1,17 @@
1.PHONY: all
2all: fcopy
3
4ROOT = ../..
5include $(ROOT)/src/common.mk
6
7%.o : %.c $(H_FILE_LIST) ../include/common.h ../include/syscall.h $(ROOT)/config.mk
8 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@
9
10fcopy: $(OBJS) ../lib/common.o $(ROOT)/config.mk
11 $(CC) $(LDFLAGS) -o $@ $(OBJS) ../lib/common.o $(LIBS) $(EXTRA_LDFLAGS)
12
13.PHONY: clean
14clean:; rm -fr *.o fcopy *.gcov *.gcda *.gcno *.plist
15
16.PHONY: distclean
17distclean: clean