diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-01-20 23:43:22 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-07-20 23:52:51 +0200 |
| commit | 37fd5c92aebd87af14a1f73f8e567b8b74f6bd36 (patch) | |
| tree | 090f9dc3d2ef7b42c341972baa3b980f288244a9 | |
| parent | 2968c5f67daa1c571f5f9cf9445de907f9490636 (diff) | |
Add Makefile
| -rw-r--r-- | Makefile | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7001c0b --- /dev/null +++ b/Makefile @@ -0,0 +1,34 @@ +.POSIX: +.SUFFIXES: .c .o + +CC = cc # c99 (default value) does not allow POSIX extensions. +PROJECT = slcl +O = -Og +CFLAGS = $(O) -g -Wall -Idynstr/include -MD -MF - +LIBS = -lcjson -lssl -lm -lcrypto +LDFLAGS = $(LIBS) +DEPS = $(OBJECTS:.o=.d) +OBJECTS = \ + auth.o \ + base64.o \ + handler.o \ + html.o \ + http.o \ + jwt.o \ + main.o \ + page.o \ + server.o \ + dynstr/dynstr.o + +all: $(PROJECT) + +clean: + rm -f $(OBJECTS) $(DEPS) + +$(PROJECT): $(OBJECTS) + $(CC) $(OBJECTS) $(LDFLAGS) -o $@ + +.c.o: + $(CC) $(CFLAGS) -c $< -o $@ > $(@:.o=.d) + +-include $(DEPS) |
