mirror of
https://github.com/Tha14/toxic.git
synced 2024-12-23 12:03:25 +01:00
Makefile: move to "build/"
This commit is contained in:
parent
57742bcd87
commit
562483823c
@ -6,6 +6,7 @@ LIBS = libtoxcore ncurses
|
|||||||
|
|
||||||
CFLAGS ?= $(USER_CFLAGS) -DTOXICVER="\"$(VERSION)\"" -std=gnu99 -pthread
|
CFLAGS ?= $(USER_CFLAGS) -DTOXICVER="\"$(VERSION)\"" -std=gnu99 -pthread
|
||||||
LDFLAGS ?= $(USER_LDFLAGS)
|
LDFLAGS ?= $(USER_LDFLAGS)
|
||||||
|
SRC_DIR = ../src
|
||||||
DESTDIR ?= /usr/local
|
DESTDIR ?= /usr/local
|
||||||
|
|
||||||
OBJ = chat.o chat_commands.o configdir.o dns.o execute.o
|
OBJ = chat.o chat_commands.o configdir.o dns.o execute.o
|
||||||
@ -87,9 +88,9 @@ install: toxic
|
|||||||
mkdir -pv $(DESTDIR)/bin
|
mkdir -pv $(DESTDIR)/bin
|
||||||
install -m 0755 toxic $(DESTDIR)/bin
|
install -m 0755 toxic $(DESTDIR)/bin
|
||||||
|
|
||||||
%.o: %.c
|
%.o: $(SRC_DIR)/%.c
|
||||||
$(CC) $(CFLAGS) -o $*.o -c $*.c
|
$(CC) $(CFLAGS) -o $*.o -c $(SRC_DIR)/$*.c
|
||||||
$(CC) -MM $(CFLAGS) $*.c > $*.d
|
$(CC) -MM $(CFLAGS) $(SRC_DIR)/$*.c > $*.d
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf *.d *.o toxic
|
rm -rf *.d *.o toxic
|
Loading…
Reference in New Issue
Block a user