initial commit
This commit is contained in:
commit
8c8158ad5b
7 changed files with 724 additions and 0 deletions
25
Makefile
Normal file
25
Makefile
Normal file
|
@ -0,0 +1,25 @@
|
|||
CC = cc
|
||||
CFLAGS = -std=c99 -O2 -pedantic -Wall -Wextra
|
||||
LDFLAGS = -ldiscord-rpc
|
||||
OBJS = prezzyipc.o
|
||||
|
||||
all: prezzyd prezzyc
|
||||
|
||||
prezzyd: prezzyd.o ${OBJS}
|
||||
cc ${CFLAGS} -o $@ prezzyd.o ${OBJS} ${LDFLAGS}
|
||||
prezzyc: prezzyc.o ${OBJS}
|
||||
cc ${CFLAGS} -o $@ prezzyc.o ${OBJS} ${LDFLAGS}
|
||||
|
||||
.SUFFIXES: .c .o
|
||||
|
||||
.c.o:
|
||||
${CC} ${CFLAGS} -DBUILD_DATE=\"$$(date -I)\" -c $<
|
||||
|
||||
clean:
|
||||
rm -f prezzyd prezzyc prezzyd.o prezzyc.o ${OBJS}
|
||||
|
||||
.PHONY: all clean
|
||||
|
||||
prezzyd.o: prezzyd.c prezzyipc.h discord_rpc.h
|
||||
prezzyc.o: prezzyc.c prezzyipc.h
|
||||
prezzyipc.o: prezzyipc.c prezzyipc.h
|
Loading…
Add table
Add a link
Reference in a new issue