You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
49 lines
1.4 KiB
Diff
49 lines
1.4 KiB
Diff
--- Makefile 2023-12-13 06:31:32
|
|
+++ Makefile 2023-12-20 12:18:00
|
|
@@ -1,6 +1,4 @@
|
|
# General
|
|
-CC = gcc
|
|
-LD = gcc
|
|
RM = rm -rf
|
|
RMDIR = rmdir
|
|
INSTALL = install
|
|
@@ -44,37 +42,12 @@
|
|
|
|
# Set Flags
|
|
ALL_CPPFLAGS := $(CPPFLAGS) -DVERSION='"$(VER)"'
|
|
-ALL_LDFLAGS := $(LDFLAGS) -L/usr/lib
|
|
+ALL_LDFLAGS := $(LDFLAGS)
|
|
ALL_LDLIBS := -lc -lm -lcurl -lzip
|
|
ALL_CPPFLAGS += -D_GNU_SOURCE
|
|
ALL_CPPFLAGS += $(shell pkg-config --cflags libzip)
|
|
|
|
-ALL_CPPFLAGS += -I/usr/include
|
|
-ALL_CPPFLAGS += -I/usr/local/include
|
|
-ALL_LDFLAGS += -L/usr/local/lib
|
|
-ifneq (,$(wildcard /opt/homebrew/.*))
|
|
- ALL_CCPFLAGS += -I/opt/homebrew/include
|
|
- ALL_CPPFLAGS += -I/opt/homebrew/lib
|
|
-endif
|
|
|
|
-ifneq (,$(wildcard /usr/local/opt/curl/.*))
|
|
- ALL_CPPFLAGS += -I/usr/local/opt/curl/include
|
|
- ALL_LDFLAGS += -L/usr/local/opt/curl/lib
|
|
-endif
|
|
-ifneq (,$(wildcard /opt/homebrew/opt/curl/.))
|
|
- ALL_CPPFLAGS += -I/opt/homebrew/opt/curl/include
|
|
- ALL_LDFLAGS += -L/opt/homebrew/opt/curl/lib
|
|
-endif
|
|
-
|
|
-ifneq (,$(wildcard /usr/local/opt/libzip/.))
|
|
- ALL_CPPFLAGS += -I/usr/local/opt/libzip/include
|
|
- ALL_LDFLAGS += -L/usr/local/opt/libzip/lib
|
|
-endif
|
|
-ifneq (,$(wildcard /opt/homebrew/opt/libzip/.))
|
|
- ALL_CPPFLAGS += -I/opt/homebrew/opt/libzip/include
|
|
- ALL_LDFLAGS += -L/opt/homebrew/opt/libzip/lib
|
|
-endif
|
|
-
|
|
# Source, Binaries, Dependencies
|
|
SRC := $(shell find $(SRCDIR) -type f -name '*.c')
|
|
OBJ := $(patsubst $(SRCDIR)/%,$(OBJDIR)/%,$(SRC:.c=.o))
|