diff options
| author | auric <104602845+ihateamongus@users.noreply.github.com> | 2025-09-08 21:19:14 -0500 |
|---|---|---|
| committer | auric <104602845+ihateamongus@users.noreply.github.com> | 2025-09-08 21:19:14 -0500 |
| commit | e61da07522a060da98fa3a56db3d0360469b26cf (patch) | |
| tree | c72d276bffa4dafe22ae0e4f694acfadb40b8ca1 /core/slogin/Makefile | |
| parent | d11aec86841f77edd6eba3e07aa1e7e591e9da2a (diff) | |
organize repository layout
Diffstat (limited to 'core/slogin/Makefile')
| -rw-r--r-- | core/slogin/Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/slogin/Makefile b/core/slogin/Makefile new file mode 100644 index 0000000..4d8c919 --- /dev/null +++ b/core/slogin/Makefile @@ -0,0 +1,16 @@ +CC = cc +CFLAGS = -std=c99 -Wall -Wextra -pedantic -Os +LDFLAGS = -lX11 -lcrypt +PREFIX ?= /usr/local + +all: slogin + +slogin: slogin.c + $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) + +clean: + rm -f slogin + +install: slogin + mkdir -p $(DESTDIR)$(PREFIX)/bin + cp -f slogin $(DESTDIR)$(PREFIX)/bin |
