diff options
| author | shtrophic <christoph@liebender.dev> | 2024-12-23 13:42:45 +0100 |
|---|---|---|
| committer | shtrophic <christoph@liebender.dev> | 2024-12-23 13:42:45 +0100 |
| commit | a7ca4007f2a55a8becab1e4595d2696dd6e7bfd1 (patch) | |
| tree | 3128196bd7eb298be5a37edac5922009ec5fcac1 /Makefile | |
| parent | af98f4ed4d0f4f9bebc392eca9dae1eaaa7e77c1 (diff) | |
| parent | 89a8c2e0cc4fcd1f9450dfeb13bf5d83730c52ae (diff) | |
Merge tag '2.67'
Version 2.67 RELEASED.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,4 +1,4 @@ -PREFIX=/usr/local +PREFIX?=/usr/local PREFIX_MAN=$(PREFIX)/man CFLAGS?=-g -Wall -Wextra -pedantic @@ -6,16 +6,16 @@ all: snac snac: snac.o main.o sandbox.o data.o http.o httpd.o webfinger.o \ activitypub.o html.o utils.o format.o upgrade.o mastoapi.o - $(CC) $(CFLAGS) -L/usr/local/lib *.o -lcurl -lcrypto $(LDFLAGS) -pthread -o $@ + $(CC) $(CFLAGS) -L$(PREFIX)/lib *.o -lcurl -lcrypto $(LDFLAGS) -pthread -o $@ .c.o: - $(CC) $(CFLAGS) $(CPPFLAGS) -I/usr/local/include -c $< + $(CC) $(CFLAGS) $(CPPFLAGS) -I$(PREFIX)/include -c $< clean: rm -rf *.o *.core snac makefile.depend dep: - $(CC) -I/usr/local/include -MM *.c > makefile.depend + $(CC) -I$(PREFIX)/include -MM *.c > makefile.depend install: mkdir -p -m 755 $(PREFIX)/bin |