Move services to separate directory

This commit is contained in:
Alex Kotov 2021-11-13 02:48:06 +05:00
parent bd4ebce470
commit fe02835dfa
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
6 changed files with 7 additions and 7 deletions

View file

@ -3,7 +3,7 @@
include config.mk
SRC = atoms.c datetime.c drw.c dwm.c status.c util.c
SRC = atoms.c drw.c dwm.c services/datetime.c services/status.c util.c
OBJ = ${SRC:.c=.o}
all: options dwm
@ -14,8 +14,8 @@ options:
@echo "LDFLAGS = ${LDFLAGS}"
@echo "CC = ${CC}"
.c.o:
${CC} -c ${CFLAGS} $<
%.o: %.c
${CC} -c $< -o $@ ${CFLAGS}
${OBJ}: config.h config.mk

4
dwm.c
View file

@ -42,9 +42,9 @@
#include <X11/Xft/Xft.h>
#include "atoms.h"
#include "datetime.h"
#include "drw.h"
#include "status.h"
#include "services/datetime.h"
#include "services/status.h"
#include "util.h"
/* macros */

View file

@ -1,6 +1,6 @@
#include "datetime.h"
#include "atoms.h"
#include "../atoms.h"
#include "status.h"
#include <pthread.h>

View file

@ -1,6 +1,6 @@
#include "status.h"
#include "atoms.h"
#include "../atoms.h"
#include "datetime.h"
#include <pthread.h>