mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-13 01:13:02 +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
|
||||
LDFLAGS ?= $(USER_LDFLAGS)
|
||||
SRC_DIR = ../src
|
||||
DESTDIR ?= /usr/local
|
||||
|
||||
OBJ = chat.o chat_commands.o configdir.o dns.o execute.o
|
||||
@ -87,9 +88,9 @@ install: toxic
|
||||
mkdir -pv $(DESTDIR)/bin
|
||||
install -m 0755 toxic $(DESTDIR)/bin
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) -o $*.o -c $*.c
|
||||
$(CC) -MM $(CFLAGS) $*.c > $*.d
|
||||
%.o: $(SRC_DIR)/%.c
|
||||
$(CC) $(CFLAGS) -o $*.o -c $(SRC_DIR)/$*.c
|
||||
$(CC) -MM $(CFLAGS) $(SRC_DIR)/$*.c > $*.d
|
||||
|
||||
clean:
|
||||
rm -rf *.d *.o toxic
|
Loading…
Reference in New Issue
Block a user