moved code here. still needs to update gh
This commit is contained in:
20
brightness_menu/Makefile
Normal file
20
brightness_menu/Makefile
Normal file
@@ -0,0 +1,20 @@
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wextra -Iinclude `pkg-config --cflags gtk+-3.0`
|
||||
LDFLAGS = -lncurses -lX11 -lXrandr `pkg-config --libs gtk+-3.0`
|
||||
|
||||
SRC = $(wildcard src/*.c)
|
||||
OBJ = $(patsubst src/%.c, build/%.o, $(SRC))
|
||||
TARGET = build/screen_control
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(OBJ)
|
||||
$(CC) -o $(TARGET) $(OBJ) $(LDFLAGS)
|
||||
|
||||
build/%.o: src/%.c
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
clean:
|
||||
rm -f build/*.o $(TARGET)
|
||||
|
||||
.PHONY: all clean
|
||||
Reference in New Issue
Block a user