1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-12-23 07:53:24 +01:00

Makefile: move to "build/"

This commit is contained in:
Ansa89 2014-06-24 11:53:02 +02:00
parent 57742bcd87
commit 562483823c

View File

@ -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