-
-
Save vinnix/8d71b278e5795282f6dd to your computer and use it in GitHub Desktop.
Arquivo usado para compilar a biblioteca. Ou seja, rodar o comando 'make'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MODULES = myLilLibrary | |
PG_CONFIG = pg_config | |
PGXS = $(shell $(PG_CONFIG) --pgxs) | |
INCLUDEDIR = $(shell $(PG_CONFIG) --includedir-server) | |
include $(PGXS) | |
myLilLibrary.so: myLilLibrary.o | |
cc -shared -o myLilLibrary.so myLilLibrary.o | |
myLilLibrary.o: myLilLibrary.c | |
cc -o myLilLibrary.o -c myLilLibrary.c $(CFLAGS) -I$(INCLUDEDIR) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment