Fix: removing old and useless files
This commit is contained in:
38
Makefile
38
Makefile
@@ -1,38 +0,0 @@
|
||||
# ------------------------------
|
||||
# Neocities CLI Makefile (Portable)
|
||||
# ------------------------------
|
||||
|
||||
# Default compiler
|
||||
CC ?= gcc
|
||||
|
||||
# Compiler flags
|
||||
CFLAGS ?= -Wall -O2 -Iinclude
|
||||
|
||||
# Libraries
|
||||
LIBS ?= -lcurl -ljansson
|
||||
|
||||
# Source and target
|
||||
SRC = \
|
||||
src/main.c \
|
||||
src/info.c
|
||||
|
||||
BIN = neocities
|
||||
|
||||
# Detect Windows (MSYS2 / MinGW)
|
||||
ifeq ($(OS),Windows_NT)
|
||||
RM = del /Q
|
||||
BIN_EXT = .exe
|
||||
else
|
||||
RM = rm -f
|
||||
BIN_EXT =
|
||||
endif
|
||||
|
||||
# Build executable
|
||||
all: $(BIN)$(BIN_EXT)
|
||||
|
||||
$(BIN)$(BIN_EXT): $(SRC)
|
||||
$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
|
||||
|
||||
# Clean build files
|
||||
clean:
|
||||
$(RM) $(BIN)$(BIN_EXT)
|
||||
Binary file not shown.
BIN
src/neocities.o
BIN
src/neocities.o
Binary file not shown.
Reference in New Issue
Block a user