Modularized modes and separated them into their own source files
This commit is contained in:
@@ -10,6 +10,7 @@ RM := rm -rf
|
||||
-include sources.mk
|
||||
-include src/subdir.mk
|
||||
-include proto/subdir.mk
|
||||
-include modes/subdir.mk
|
||||
-include subdir.mk
|
||||
-include objects.mk
|
||||
|
||||
@@ -30,7 +31,7 @@ all: wofi
|
||||
wofi: $(OBJS) $(USER_OBJS)
|
||||
@echo 'Building target: $@'
|
||||
@echo 'Invoking: GCC C Linker'
|
||||
gcc -fsanitize=address -pthread -o "wofi" $(OBJS) $(USER_OBJS) $(LIBS)
|
||||
gcc -fsanitize=address -rdynamic -pthread -o "wofi" $(OBJS) $(USER_OBJS) $(LIBS)
|
||||
@echo 'Finished building target: $@'
|
||||
@echo ' '
|
||||
|
||||
|
30
Debug/modes/subdir.mk
Normal file
30
Debug/modes/subdir.mk
Normal file
@@ -0,0 +1,30 @@
|
||||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
C_SRCS += \
|
||||
../modes/dmenu.c \
|
||||
../modes/drun.c \
|
||||
../modes/run.c
|
||||
|
||||
OBJS += \
|
||||
./modes/dmenu.o \
|
||||
./modes/drun.o \
|
||||
./modes/run.o
|
||||
|
||||
C_DEPS += \
|
||||
./modes/dmenu.d \
|
||||
./modes/drun.d \
|
||||
./modes/run.d
|
||||
|
||||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
modes/%.o: ../modes/%.c
|
||||
@echo 'Building file: $<'
|
||||
@echo 'Invoking: GCC C Compiler'
|
||||
gcc -D_GNU_SOURCE -I../inc -O0 -g3 -Wall -Wextra -c -fmessage-length=0 -fsanitize=address `pkg-config --cflags gtk+-3.0` -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
|
||||
@echo 'Finished building: $<'
|
||||
@echo ' '
|
||||
|
||||
|
@@ -4,5 +4,5 @@
|
||||
|
||||
USER_OBJS :=
|
||||
|
||||
LIBS := -lgtk-3 -lgdk-3 -lgio-2.0 -lglib-2.0 -lgobject-2.0 -lwayland-client -lgdk_pixbuf-2.0
|
||||
LIBS := -ldl -lgtk-3 -lgdk-3 -lgio-2.0 -lglib-2.0 -lgobject-2.0 -lwayland-client -lgdk_pixbuf-2.0
|
||||
|
||||
|
@@ -13,6 +13,7 @@ C_DEPS :=
|
||||
|
||||
# Every subdirectory with source files must be described here
|
||||
SUBDIRS := \
|
||||
modes \
|
||||
proto \
|
||||
src \
|
||||
|
||||
|
Reference in New Issue
Block a user