-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (27 loc) · 969 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (27 loc) · 969 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# ╔══════════════════════════════════════════════╗
# ║ NetPulse — Makefile ║
# ║ Made by Aryan Giri ║
# ╚══════════════════════════════════════════════╝
CC = gcc
TARGET = netpulse
SRC = netpulse.c
CFLAGS = -O2 -Wall -Wextra -Wpedantic
LDFLAGS = -lpthread
# Default: build
all: $(TARGET)
$(TARGET): $(SRC)
$(CC) $(CFLAGS) -o $(TARGET) $(SRC) $(LDFLAGS)
@echo ""
@echo " ✔ Built: ./$(TARGET)"
@echo " ➜ Run : ./$(TARGET)"
@echo ""
# Termux-specific build (alias)
termux: all
# Clean binary
clean:
rm -f $(TARGET) *.csv
# Install to Termux PATH
install: $(TARGET)
cp $(TARGET) $(PREFIX)/bin/$(TARGET)
@echo " ✔ Installed to $(PREFIX)/bin/$(TARGET)"
.PHONY: all termux clean install