summaryrefslogtreecommitdiff
path: root/userland/sftp/Makefile
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-12-31 16:14:25 +0100
committerAnton Kling <anton@kling.gg>2024-12-31 16:14:25 +0100
commitd572e3148c16587ab3a2f8bd22b29fef369ccab6 (patch)
treef48907067945c469b59921395068c0dd0ada6913 /userland/sftp/Makefile
parent4b1577f80962e8cce055fdb4d6f641187df0bbe0 (diff)
sftp: Add sftp serverHEADmaster
Diffstat (limited to 'userland/sftp/Makefile')
-rw-r--r--userland/sftp/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/userland/sftp/Makefile b/userland/sftp/Makefile
new file mode 100644
index 0000000..c95d298
--- /dev/null
+++ b/userland/sftp/Makefile
@@ -0,0 +1,16 @@
+CC=i686-sb-gcc
+OBJ = sftp.o handle.o
+CFLAGS = -Wall -Wextra -pedantic -Werror
+LDFLAGS=
+
+all: sftp
+
+%.o: %.c
+ clang-format -i $<
+ $(CC) -c -o $@ $< $(CFLAGS)
+
+sftp: $(OBJ)
+ $(CC) $(LDFLAGS) -o $@ $(CFLAGS) $^
+
+clean:
+ rm sftp $(OBJ)