mirror of
https://git.faggot-chan.online/timetolocal/
synced 2026-11-05 00:35:42 +01:00
not a bug, i had the wrong makefile
This commit is contained in:
1 parent
2aaa9bbece
commit
c315d1d2b3
1 file changed
+2
-8
@@ -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)
|
||||
Reference in new issue
Block a user