toxon
/
ToxEcho
Archived
1
0
Fork 0

Add Makefile

This commit is contained in:
Braiden Vasco 2015-07-25 20:26:55 +05:00
parent d93c708b05
commit 9cb0c84475
1 changed files with 15 additions and 0 deletions

15
Makefile Normal file
View 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)