diff options
Diffstat (limited to 'xpp/utils/Makefile')
-rw-r--r-- | xpp/utils/Makefile | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/xpp/utils/Makefile b/xpp/utils/Makefile index 021647c..562c738 100644 --- a/xpp/utils/Makefile +++ b/xpp/utils/Makefile @@ -1,15 +1,15 @@ -TEST_CPP = 1 -PEDANTIC = -ansi -pedantic +PEDANTIC = -ansi -pedantic -std=c99 CC = gcc RANLIB = ranlib +INSTALL = install -ifeq (1,${TEST_CPP}) -CXXFLAGS = $(CFLAGS) -EXTRA_CFLAGS = -x c++ -EXTRA_LIBS = -lstdc++ -LDLIBS += $(EXTRA_LIBS) -endif +BINDIR = /sbin +DATADIR = /usr/share/zaptel +MANDIR = /usr/share/man/man8 +HOTPLUG_USB_DIR = /etc/hotplug/usb + +DATA_FILES = ../init_data_*.cmd ../initialize_registers CFLAGS = -g -Wall $(EXTRA_CFLAGS) @@ -17,6 +17,17 @@ TARGETS = libhexfile.a fpga_load test_parse all: $(TARGETS) +install: all + $(INSTALL) -d $(BINDIR) + $(INSTALL) genzaptelconf fpga_load $(BINDIR)/ + $(INSTALL) -d $(DATADIR) + $(INSTALL) $(DATA_FILES) $(DATADIR)/ + $(INSTALL) -d $(MANDIR) + $(INSTALL) fpga_load.8 $(MANDIR)/ + $(INSTALL) -d $(HOTPLUG_USB_DIR) + $(INSTALL) xpp_fxloader xpp_fxloader.usermap $(HOTPLUG_USB_DIR)/ + + libhexfile.a: hexfile.o $(AR) cru $@ $^ $(RANLIB) $@ |