aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authordavid <[email protected]>2026-09-28 12:23:49 -0300
committerdavid <[email protected]>2026-09-28 12:23:49 -0300
commitc315d1d2b3ea9e42045e402564da344dde30fab4 (patch)
tree8d22a948b30ee20ac01f83ccaa06e18c755de7c7 /Makefile
parent2aaa9bbecea6ab32bd1fe1b6470e24703405e2a7 (diff)
downloadtimetolocal-c315d1d2b3ea9e42045e402564da344dde30fab4.tar.gz
timetolocal-c315d1d2b3ea9e42045e402564da344dde30fab4.zip
not a bug, i had the wrong makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 2 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index ac37253..dc1be1a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,14 @@
CC = gcc
CFLAGS = -Wall -Wextra -O2 -pipe
-LDLIBS =
TARGET = timetolocal
SRC = $(wildcard *.c)
-OBJ = $(SRC:src/%.c=obj/%.o)
PREFIX = /usr/local
all: $(TARGET)
$(TARGET): $(OBJ)
@mkdir -p $(@D)
- $(CC) $(CFLAGS) -o $(TARGET) $(OBJ) $(LDLIBS)
+ $(CC) $(CFLAGS) -o $(TARGET) $(SRC)
install: $(TARGET)
install -D $(TARGET) $(DESTDIR)$(PREFIX)/bin/$(notdir $(TARGET))
@@ -18,9 +16,5 @@ install: $(TARGET)
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/$(notdir $(TARGET))
-obj/%.o: src/%.c
- @mkdir -p $(@D)
- $(CC) $(CFLAGS) -c $< -o $@
-
clean:
- rm -rf obj/ $(TARGET)
+ rm -rf $(TARGET)