mirror of
https://github.com/BlackLight/Jastegal.git
synced 2024-11-23 20:25:11 +01:00
30 lines
465 B
Makefile
30 lines
465 B
Makefile
CXX=g++
|
|
CFLAGS=-Wall -pedantic
|
|
LDFLAGS=-lX11 -lpthread -lm -lz
|
|
INSTALLDIR=/usr/local
|
|
|
|
NAME=jastegal
|
|
FILES=utils.o jastegal.o encode.o decode.o compress.o
|
|
|
|
ifeq (${DEBUG},1)
|
|
CFLAGS += -g3
|
|
endif
|
|
|
|
all: $(FILES)
|
|
${CXX} ${LDFLAGS} -o ${NAME} ${FILES}
|
|
|
|
$(FILES): $(FILES:.o=.cpp)
|
|
${CXX} ${CFLAGS} -c $*.cpp
|
|
|
|
install:
|
|
mkdir -p ${INSTALLDIR}/bin
|
|
install -m 0755 ${NAME} ${INSTALLDIR}/bin
|
|
|
|
clean:
|
|
rm ${FILES}
|
|
rm ${NAME}
|
|
|
|
uninstall:
|
|
rm -f ${INSTALLDIR}/bin/${NAME}
|
|
|
|
|