Initial commit
This commit is contained in:
33
Makefile
Normal file
33
Makefile
Normal file
@@ -0,0 +1,33 @@
|
||||
override CFLAGS+=-Werror -Wall -g -fPIC -O2 -DNDEBUG -std=c99 -ftrapv -Wfloat-equal -Wundef -Wwrite-strings -Wconversion -Wuninitialized
|
||||
PREFIX=/usr/bin/cd_check/
|
||||
BUILDDIR=bin/
|
||||
SRCDIR=src/
|
||||
|
||||
#Makes everything
|
||||
all:
|
||||
mkdir $(BUILDDIR) 2> /dev/null || true
|
||||
cc $(CFLAGS) $(SRCDIR)cd_check_eject.c -o $(BUILDDIR)cd_check_eject
|
||||
cc $(CFLAGS) $(SRCDIR)cd_check_capabilities.c -o $(BUILDDIR)cd_check_capabilities
|
||||
cc $(CFLAGS) $(SRCDIR)cd_check_read_toc.c -o $(BUILDDIR)cd_check_read_toc
|
||||
cc $(CFLAGS) $(SRCDIR)cd_check_read.c -o $(BUILDDIR)cd_check_read
|
||||
|
||||
#Uses picky extensions and makes everything(Extensions may break compiling)
|
||||
dev:
|
||||
make all CFLAGS+=-Wshadow -Wunreachable-code -Wswitch-enum -Wswitch-default -Wcast-align -Winit-self -Wpointer-arith -Weffc++
|
||||
|
||||
#Cleans directory(no uninstall!)
|
||||
clean:
|
||||
rm -rf $(BUILDDIR)
|
||||
|
||||
#Installs into specified(or default) directory
|
||||
install:
|
||||
install -d $(PREFIX)
|
||||
install $(BUILDDIR)cd_check_eject $(PREFIX)cd_check_eject
|
||||
install $(BUILDDIR)cd_check_capabilities $(PREFIX)cd_check_capabilities
|
||||
install $(BUILDDIR)cd_check_read_toc $(PREFIX)cd_check_read_toc
|
||||
install $(BUILDDIR)cd_check_read $(PREFIX)cd_check_read
|
||||
|
||||
|
||||
#Uninstalls from specified(or default)directory
|
||||
uninstall:
|
||||
rm -rf $(PREFIX)
|
Reference in New Issue
Block a user