Files
super_ball_thrower/Makefile
2025-12-10 10:17:24 -04:00

26 lines
666 B
Makefile

CC = gcc
CFLAGS = -Wall -Wextra -O2 -I./nostr_core_lib/nostr_core -I./nostr_core_lib/cjson
LDFLAGS = ./nostr_core_lib/libnostr_core_x64.a -lz -ldl -lpthread -lm -L/usr/local/lib -lsecp256k1 -lssl -lcrypto -L/usr/local/lib -lcurl
TARGET = superball_thrower
SOURCE = main.c
all: nostr_core_lib $(TARGET)
nostr_core_lib:
@echo "Building nostr_core_lib..."
cd nostr_core_lib && ./build.sh --nips=1,6,44
$(TARGET): $(SOURCE)
$(CC) $(CFLAGS) $(SOURCE) -o $(TARGET) $(LDFLAGS)
clean:
rm -f $(TARGET)
distclean: clean
cd nostr_core_lib && make clean
install: $(TARGET)
install -m 755 $(TARGET) /usr/local/bin/
.PHONY: all clean distclean install nostr_core_lib