finally put this under version control
This commit is contained in:
commit
55f357eb88
9 changed files with 1583 additions and 0 deletions
33
Makefile
Normal file
33
Makefile
Normal file
|
@ -0,0 +1,33 @@
|
|||
PREFIX ?= /usr/local
|
||||
|
||||
# UNCOMMENT FOR DYNAMIC LINKING
|
||||
CFLAGS := $(CFLAGS)
|
||||
SKA :=
|
||||
|
||||
# UNCOMMENT FOR STATIC LINKING
|
||||
# CFLAGS := $(CFLAGS) -static -fpic -Wl,-static -fdata-sections -ffunction-sections -Wl,--gc-sections -s
|
||||
# SKA := /usr/lib/libskarnet.a # you might have to change this location
|
||||
|
||||
LDFLAGS := $(LDFLAGS) -lskarnet
|
||||
|
||||
all: mvwt mvwtc mvwtimg
|
||||
|
||||
mvwt: mvwt.c $(SKA)
|
||||
|
||||
mvwtc: mvwtc.c pdjson.c $(SKA)
|
||||
|
||||
mvwtimg: mvwtimg.c $(SKA)
|
||||
|
||||
.PHONY: install
|
||||
install: all
|
||||
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
||||
cp -f mvwt $(DESTDIR)$(PREFIX)/bin
|
||||
chmod 755 $(DESTDIR)$(PREFIX)/bin/mvwt
|
||||
cp -f mvwtc $(DESTDIR)$(PREFIX)/bin
|
||||
chmod 755 $(DESTDIR)$(PREFIX)/bin/mvwtc
|
||||
cp -f mvwtimg $(DESTDIR)$(PREFIX)/bin
|
||||
chmod 755 $(DESTDIR)$(PREFIX)/bin/mvwtimg
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
-rm -f mvwt mvwtc mvwtimg
|
Loading…
Add table
Add a link
Reference in a new issue