aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorjustanothercatgirl <sotov@twistea.su>2025-04-04 23:18:54 +0200
committerjustanothercatgirl <sotov@twistea.su>2025-04-04 23:25:13 +0200
commita5137be09173ebe60e708e71e2162193338731a4 (patch)
tree2b70e2fb37de09ef69fcad101208f63fe9ad0811 /Makefile
parent3ee36bbfe99c10c8b788ba80db8e4338913b818e (diff)
Fixed makefile, added port config
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 1b71312..c6c7e37 100644
--- a/Makefile
+++ b/Makefile
@@ -40,8 +40,8 @@ $(BLDDIR)/rename.ld: $(BLDDIR)/endpoints.o $(BLDDIR)
@readelf --syms --wide $(BLDDIR)/endpoints.o | awk '/FUNC/ && /GLOBAL/ && /ENDP/ {old = $$8; gsub(/_/, "/", $$8); gsub(/ENDP/, "", $$8); printf "\t%s = %s;\n", $$8, old }' >> $@
echo } >> $@
-endpoints.so: $(BLDDIR)/endpoints.o $(BLDDIR)/common.o $(BLDDIR)/mime.o $(BLDDIR)/sql.o
- $(CC) -shared -fPIC -Wl,$(BLDDIR)/rename.ld $(CFLAGS) $^ -lmicrohttpd -lsqlite3 -o $@
+endpoints.so: $(BLDDIR)/endpoints.o $(BLDDIR)/common.o $(BLDDIR)/mime.o $(BLDDIR)/sql.o $(BLDDIR)/rename.ld
+ $(CC) -shared -fPIC -Wl,$(BLDDIR)/rename.ld $(CFLAGS) $(BLDDIR)/endpoints.o $(BLDDIR)/common.o $(BLDDIR)/mime.o $(BLDDIR)/sql.o -lmicrohttpd -lsqlite3 -o $@
# main
@@ -58,7 +58,7 @@ main: $(BLDDIR)/main.o $(BLDDIR)/mime.o $(BLDDIR)/common.o
$(CC) $(CFLAGS) $^ -ldl -lmicrohttpd -lsqlite3 -o $@
clean:
- $(RM) --recursive $(BLDDIR)/template/* $(BLDDIR)/* main endpoints.o endpoints.so rename.ld include/mime.h.inc
+ $(RM) --recursive $(BLDDIR)/template/* $(BLDDIR)/* main endpoints.o endpoints.so rename.ld include/mime.c.inc
veryclean: clean
$(RM) jals.db config.env