Refactor config parsing code in main.d, rename esv.d -> esvapi.d, rename class EsvAPI to ESVApi, makefile changes
This commit is contained in:
parent
7f61d7bfa6
commit
5dc2a12f1e
3 changed files with 24 additions and 30 deletions
14
Makefile
14
Makefile
|
@ -2,9 +2,9 @@ IMPORT = import
|
|||
PREFIX = /usr/local
|
||||
MANPREFIX = /usr/share/man
|
||||
|
||||
DC = ldc2
|
||||
CFLAGS = -O -I${IMPORT} -w
|
||||
OBJS = main.o esv.o ini.o
|
||||
DC = ldc2
|
||||
CFLAGS = -O -I${IMPORT} -release -w
|
||||
OBJS = main.o esvapi.o ini.o
|
||||
|
||||
all: esv
|
||||
|
||||
|
@ -12,17 +12,17 @@ esv: ${OBJS}
|
|||
${DC} ${CFLAGS} -of$@ ${OBJS}
|
||||
|
||||
# main executable
|
||||
main.o: main.d esv.o
|
||||
main.o: main.d esvapi.o
|
||||
${DC} ${CFLAGS} -c main.d -of$@
|
||||
|
||||
esv.o: esv.d
|
||||
${DC} ${CFLAGS} -c esv.d -of$@
|
||||
esvapi.o: esvapi.d
|
||||
${DC} ${CFLAGS} -c esvapi.d -of$@
|
||||
|
||||
ini.o: ${IMPORT}/dini/*.d
|
||||
${DC} ${CFLAGS} -c ${IMPORT}/dini/*.d -of$@
|
||||
|
||||
clean:
|
||||
rm -f ${PROG} ${OBJS}
|
||||
rm -f esv ${OBJS}
|
||||
|
||||
install: esv
|
||||
install -m755 esv ${DESTDIR}${PREFIX}/bin/esv
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue