dexedrine/Makefile
2023-12-30 17:07:20 +00:00

22 lines
448 B
Makefile

# Define the variables for the compiler and the flags
CC = gcc
CFLAGS = -Wall -g
# Define the libraries to link
LIBS = -lsystemd -lbsd
# Define the source file and the output binary
BIN = dexedrine
SRC := $(BIN).c
# Define the default rule to build the program
all: $(BIN)
# Define the rule to compile the source file
$(BIN): $(SRC)
$(CC) $(CFLAGS) $(SRC) -o $(BIN) $(LIBS)
# Define the rule to clean the generated files
clean:
rm -f $(BIN)