Rename main to server and add empty executable userctl

This commit is contained in:
2026-05-28 12:53:43 +02:00
parent 22b796ae26
commit f343c86800
4 changed files with 21 additions and 7 deletions

View File

@@ -9,8 +9,14 @@ LIBSHA_SRC=$(LIBSHA)sha256.c
LDFLAGS=-lm -luuid
INCL_FLAGS=-I$(LIBWS)include -I$(LIBSHA)
main: src/main.c $(LIBSHA_SRC) output
gcc $(CFLAGS) $(INCL_FLAGS) -o output/main src/main.c $(LIBWS_LIB) $(LDFLAGS)
server: src/server.c $(LIBSHA_SRC) output
gcc $(CFLAGS) $(INCL_FLAGS) -o output/server src/server.c $(LIBWS_LIB) $(LDFLAGS)
LDFLAGS2=-lm
INCL_FLAGS2=-I$(LIBSHA)
userctl: src/userctl.c $(LIBSHA_SRC) output
gcc $(CFLAGS) $(INCL_FLAGS2) -o output/userctl src/userctl.c $(LDFLAGS2)
output:
mkdir -p output