diff options
| author | Nakidai <nakidai@disroot.org> | 2024-09-29 00:17:04 +0300 |
|---|---|---|
| committer | Nakidai <nakidai@disroot.org> | 2024-09-29 00:17:04 +0300 |
| commit | b7c04d83fa5df072f5a3bd88cf5802f0aad6ffcb (patch) | |
| tree | b8c2aeeb8d0a98428a2da45ff22d6a2b46bc3b27 | |
| parent | d3046284b23ca81be438c94e8f83b7e13e929d81 (diff) | |
| download | cptc-b7c04d83fa5df072f5a3bd88cf5802f0aad6ffcb.tar.gz cptc-b7c04d83fa5df072f5a3bd88cf5802f0aad6ffcb.zip | |
Make Makefile cooler
- Things that I was using as LDFLAGS is should be called LDLIBS for real - Edit recipe to build cptc
| -rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile index fb51c92..75ceac7 100644 --- a/Makefile +++ b/Makefile @@ -7,8 +7,9 @@ OBJS += root.o CFLAGS += $(shell curl-config --cflags) CFLAGS += -std=c11 -LDFLAGS += $(shell curl-config --libs) -LDFLAGS += -lcpetpet +LDLIBS += $(shell curl-config --libs) +LDLIBS += -lcpetpet +LDLIBS += -lcurl RM = rm -f all: cptc @@ -20,7 +21,7 @@ root.c: utils/convert README echo "const char *CPTC_root = \"$$(cat README | utils/convert)\";" > $@ cptc: $(OBJS) - $(CC) -o $@ $^ $(LDFLAGS) + $(CC) $(LDFLAGS) $(OBJS) $(LDLIBS) -o $@ clean: $(RM) cptc *.o |