[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/pq 8e13d07737 16/63: Update Makefile
From: |
ELPA Syncer |
Subject: |
[elpa] externals/pq 8e13d07737 16/63: Update Makefile |
Date: |
Mon, 14 Feb 2022 23:24:20 -0500 (EST) |
branch: externals/pq
commit 8e13d07737308d8ab134e50c869153f1743f286a
Author: Mario Rodas <marsam@users.noreply.github.com>
Commit: Mario Rodas <marsam@users.noreply.github.com>
Update Makefile
---
Makefile | 22 +++++++++++++++++-----
1 file changed, 17 insertions(+), 5 deletions(-)
diff --git a/Makefile b/Makefile
index 1b412527b0..e61c75dc8e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,20 @@
+CC = gcc
+CFLAGS = -I$(HOME)/ext/emacs/src/ -I /usr/include/postgresql/ -std=gnu99
-ggdb3 -Wall -fPIC
+LDFLAGS = -lpq
-CFLAGS = -I$(HOME)/ext/emacs/src/ -I /usr/include/postgresql/
-LDFLAGS = -lpq
-pq.so : pq.c
- gcc -g -O3 -shared $(CFLAGS) -Wall -Werror $(LDFLAGS) $< -o $@
+ifeq ($(OS),Windows_NT)
+TARGET = pq.dll
+else
+TARGET = pq.so
+endif
+
+all: $(TARGET)
+
+%.so: %.o
+ $(LD) -shared $(LDFLAGS) -o $@ $<
+
+%.o: %.c
+ $(CC) $(CFLAGS) -c $<
clean:
- rm -f pq.so
+ $(RM) $(TARGET)
- [elpa] externals/pq 862bf023c0 20/63: Add processing for asynchronous notices., (continued)
- [elpa] externals/pq 862bf023c0 20/63: Add processing for asynchronous notices., ELPA Syncer, 2022/02/14
- [elpa] externals/pq 9e719959b3 12/63: Avoid global variable for pq:error symbol., ELPA Syncer, 2022/02/14
- [elpa] externals/pq ca337173dd 08/63: Explicitly free the libpq result., ELPA Syncer, 2022/02/14
- [elpa] externals/pq e1d1b77b88 34/63: test: Notice receiver., ELPA Syncer, 2022/02/14
- [elpa] externals/pq 499dc3b50e 57/63: Re-introduce custom error signal pq:error with SQLSTATE., ELPA Syncer, 2022/02/14
- [elpa] externals/pq d738d21b6a 52/63: Add checks for non-local exit., ELPA Syncer, 2022/02/14
- [elpa] externals/pq 8151e0bc99 60/63: Add function pq:notifies to support LISTEN., ELPA Syncer, 2022/02/14
- [elpa] externals/pq 46e38888e3 01/63: Initial commit., ELPA Syncer, 2022/02/14
- [elpa] externals/pq b72ee45524 02/63: Add .gitignore, flush tempfile., ELPA Syncer, 2022/02/14
- [elpa] externals/pq dfa4ad04bb 03/63: README: clarify., ELPA Syncer, 2022/02/14
- [elpa] externals/pq 8e13d07737 16/63: Update Makefile,
ELPA Syncer <=
- [elpa] externals/pq e9e1998796 10/63: Handle booleans and fix some NULL handling., ELPA Syncer, 2022/02/14
- [elpa] externals/pq 09e320f63f 29/63: Initial travis ci configuration, ELPA Syncer, 2022/02/14
- [elpa] externals/pq 76f81f5ca5 05/63: Replace low-level functions with a higher level one., ELPA Syncer, 2022/02/14
- [elpa] externals/pq 1048d41b99 28/63: Use pg_config to detect postgresql include directory, ELPA Syncer, 2022/02/14
- [elpa] externals/pq fb79f059fb 19/63: Flush debug fprintf()s., ELPA Syncer, 2022/02/14
- [elpa] externals/pq 2c03e4aba4 42/63: Make garbage-collection test more robust., ELPA Syncer, 2022/02/14
- [elpa] externals/pq dc688341b0 35/63: test: Check more raised errors in different parts of the code., ELPA Syncer, 2022/02/14
- [elpa] externals/pq 33e626d5b8 11/63: README: It's no longer quick and dirty., ELPA Syncer, 2022/02/14
- [elpa] externals/pq 45a732a4c2 31/63: Add test for signal error, ELPA Syncer, 2022/02/14
- [elpa] externals/pq 6ab076af29 26/63: Fix memory leak., ELPA Syncer, 2022/02/14