Add Makefile
This commit is contained in:
parent
d93c708b05
commit
9cb0c84475
1 changed files with 15 additions and 0 deletions
15
Makefile
Normal file
15
Makefile
Normal file
|
@ -0,0 +1,15 @@
|
|||
OUTPUT = toxecho
|
||||
OBJ = main.o
|
||||
LIBS = libtoxcore
|
||||
|
||||
CFLAGS = -std=gnu99 -Wall
|
||||
LDFLAGS = $(shell pkg-config --libs $(LIBS))
|
||||
|
||||
all: $(OBJ)
|
||||
@$(CC) $(CFLAGS) $(LDFLAGS) $(OBJ) -o $(OUTPUT)
|
||||
|
||||
%.o: %.c
|
||||
@$(CC) $(CFLAGS) -c $*.c -o $*.o
|
||||
|
||||
clean:
|
||||
rm *.o $(OUTPUT)
|
Reference in a new issue