Makefile compile for specific username
This commit is contained in:
parent
47fd0968cb
commit
0be02f3954
1 changed files with 2 additions and 4 deletions
6
Makefile
6
Makefile
|
@ -10,6 +10,7 @@ MANPAGE = $(TARGET).1
|
|||
PREFIX ?= /usr/local
|
||||
BINDIR = $(PREFIX)/bin
|
||||
MANDIR = $(PREFIX)/share/man/man1
|
||||
username ?= default
|
||||
|
||||
# Flags
|
||||
LDFLAGS = $(shell pkg-config --libs libsodium libnotify ncurses sqlite3)
|
||||
|
@ -28,7 +29,7 @@ $(SERVER): $(SERVERSRC) $(LIBSRC)
|
|||
|
||||
$(CLIENT): $(CLIENTSRC) $(LIBSRC)
|
||||
mkdir -p bin
|
||||
$(CC) $(CLIENTSRC) $(LIBSRC) $(INCLUDE) -o bin/$@ $(CFLAGS) $(LDFLAGS)
|
||||
$(CC) $(CLIENTSRC) $(LIBSRC) $(INCLUDE) -DUSERNAME=\"$(username)\" -o bin/$@-$(username) $(CFLAGS) $(LDFLAGS)
|
||||
|
||||
dist:
|
||||
mkdir -p $(TARGET)-$(VERSION)
|
||||
|
@ -55,7 +56,4 @@ uninstall:
|
|||
clean:
|
||||
$(RM) $(SERVER) $(CLIENT)
|
||||
|
||||
run:
|
||||
./bin/zen
|
||||
|
||||
.PHONY: all dist install uninstall clean
|
||||
|
|
Loading…
Reference in a new issue