From 62f81e5cafbacfb90ac0f86e52e8e3176aa5ba8f Mon Sep 17 00:00:00 2001 From: Jonathan McCrohan Date: Tue, 30 Oct 2012 21:29:30 +0000 Subject: Imported Upstream version 0.65 --- Makefile | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d72dde1 --- /dev/null +++ b/Makefile @@ -0,0 +1,45 @@ +CC= gcc +LDFLAGS= -L/usr/lib -L/usr/local/lib -L/usr/lib/ncurses -L/usr/local/lib/ncurses +CPPFLAGS= -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses +CFLAGS= -O3 -Wall -std=c99 +#CFLAGS+= -ffunction-sections -fdata-sections +#LDFLAGS+= --gc-sections +LIBS= -lncurses +DESTDIR= /usr/local/ + +OFILES=buffers.o \ + configfile.o \ + correlation.o \ + gpl.o \ + hexcalc.o \ + input.o \ + machine_type.o \ + main.o \ + markers.o \ + menu.o \ + output.o \ + search.o \ + ui.o + +all: dhex + +dhex: $(OFILES) + $(CC) $(LDFLAGS) -o $@ $(OFILES) $(LIBS) + +install:all + strip dhex + cp dhex $(DESTDIR)/bin + cp dhex.1 $(DESTDIR)/share/man/man1 + cp dhexrc.5 $(DESTDIR)/share/man/man5 + cp dhex_markers.5 $(DESTDIR)/share/man/man5 + cp dhex_searchlog.5 $(DESTDIR)/share/man/man5 + + + +.c.o: + $(CC) $< -c -I. $(CPPFLAGS) $(CFLAGS) $(OPTIONS) + +clean: + rm -f dhex $(OFILES) + + -- cgit v1.2.3