Browse Source

Makeing on Linux

import_own_key
Volker Birk 6 years ago
parent
commit
b67b6496b8
2 changed files with 5 additions and 2 deletions
  1. +4
    -1
      Makefile.conf
  2. +1
    -1
      src/Makefile

+ 4
- 1
Makefile.conf View File

@ -1,6 +1,6 @@
BUILD_ON=$(shell uname)
BUILD_FOR=$(BUILD_ON)
OPTIMIZE=-g -O0
OPTIMIZE=-g -O0 -fPIC
#OPTIMIZE=-O3 -DNDEBUG -std=c99
LD=$(CC)
#CC=gcc-mp-4.9 -std=c99 -fstrict-aliasing -Wstrict-aliasing=3
@ -11,6 +11,9 @@ YML2PROC=$(HOME)/yml2/yml2proc
YML_PATH=$(HOME)/yml2
ASN1C=asn1c
# TODO: For brew this is /usr/local/share/asn1c
# On BSDs, it might be that as well. How to check?
# For now, it just works, even when it doesn't exist.
ASN1C_INCLUDE=/opt/local/share/asn1c
# C makros (not environment variables) to overwrite:


+ 1
- 1
src/Makefile View File

@ -29,7 +29,7 @@ LIBGPGME=libgpgme.so.11
CC=gcc -std=c99
CFLAGS?=-I$(GPGME_IN)/include $(OPTIMIZE) -fPIC -pedantic \
-DSYSTEM_DB=\"$(SYSTEM_DB)\" -DLIBGPGME=\"$(LIBGPGME)\" \
-DSQLITE_THREADSAFE=1 -D_GNU_SOURCE -I../asn.1
-DSQLITE_THREADSAFE=1 -D_GNU_SOURCE -I../asn.1 -lsqlite3
LDFLAGS?=-L$(GPGME_IN)/lib -shared -lc -ldl -letpan -lpthread -L../asn.1 -lasn1
else


Loading…
Cancel
Save