Skip to content
Snippets Groups Projects
Select Git revision
  • 274a78f03214902297fc6783b352de307b797eda
  • master default protected
  • streebog
  • gost28147
  • master-updates
  • ed448
  • shake256
  • curve448
  • ecc-sqrt
  • gosthash94cp
  • cmac64
  • block16-refactor
  • siv-mode
  • cmac-layout
  • delete-des-compat
  • delete-rsa_blind
  • aes-struct-layout
  • release-3.4-fixes
  • struct-layout
  • attribute-deprecated
  • rename-data-symbols
  • nettle_3.5.1_release_20190627
  • nettle_3.5_release_20190626
  • nettle_3.5rc1
  • nettle_3.4.1_release_20181204
  • nettle_3.4.1rc1
  • nettle_3.4_release_20171119
  • nettle_3.4rc2
  • nettle_3.4rc1
  • nettle_3.3_release_20161001
  • nettle_3.2_release_20160128
  • nettle_3.1.1_release_20150424
  • nettle_3.1_release_20150407
  • nettle_3.1rc3
  • nettle_3.1rc2
  • nettle_3.1rc1
  • nettle_3.0_release_20140607
  • nettle_2.7.1_release_20130528
  • nettle_2.7_release_20130424
  • nettle_2.6_release_20130116
  • nettle_2.5_release_20120707
41 results

des.c

Blame
  • Forked from Nettle / nettle
    Source project has a limited visibility.
    Makefile 1.34 KiB
    .PHONY: all install clean check
    
    CFLAGS=-Wall -pedantic \
    	   -std=gnu18 \
    	   $(shell pkg-config --cflags gumbo) \
    	   $(shell guile-config compile)
    LDLIBS=$(shell pkg-config --libs gumbo) \
    	   $(shell guile-config link)
    
    GUILE_SITE_DIR=$(shell guile -c "(display (%site-dir))")
    GUILE_CCACHE_DIR=$(shell guile -c "(display (%site-ccache-dir))")
    
    SCM_FILES=$(shell find scm -type f -name \*.scm)
    GO_FILES=$(SCM_FILES:scm/%.scm=ccache/%.go)
    
    INFOFLAGS=
    
    TARGET=libguile-gumbo.so
    DESTDIR=
    
    all: ${TARGET} ${GO_FILES} guile-gumbo.info
    
    guile-gumbo.o: guile-gumbo.x
    
    %.o: %.c
    	$(CC) -O2 -c $(CFLAGS) -o $@ -fPIC $<
    
    %.x: %.c
    	guile-snarf -o $@ $(CFLAGS) $<
    
    ccache/%.go: scm/%.scm
    	@mkdir -p ccache
    	guild compile -o $@ $<
    
    ${TARGET}: guile-gumbo.o
    	$(CC) -shared -o $@ -fPIC $^ $(LDLIBS)
    
    %.info: %.texi
    	$(MAKEINFO) -o $@ $(INFOFLAGS) $<
    
    install: all
    	mkdir -p $(DESTDIR)$(GUILE_SITE_DIR)
    	mkdir -p $(DESTDIR)$(GUILE_CCACHE_DIR)
    	cp -ra --no-preserve=ownership scm/* $(DESTDIR)$(GUILE_SITE_DIR)
    	cp -ra --no-preserve=ownership ccache/* $(DESTDIR)$(GUILE_CCACHE_DIR)
    	install -Dt ${DESTDIR}/usr/lib/ libguile-gumbo.so
    	install -m644 -Dt ${DESTDIR}/usr/share/info/ guile-gumbo.info
    
    test_env=LD_LIBRARY_PATH=$$PWD GUILE_LOAD_PATH=$$PWD/scm GUILE_LOAD_COMPILED_PATH=$$PWD/ccache
    
    check: all
    	env ${test_env} guile -s tests.scm
    
    clean:
    	-rm *.o
    	-rm *.so
    	-rm *.x
    	-rm $(GO_FILES)