aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortslil <tslil@posteo.de>2021-01-04 00:12:33 -0500
committertslil <tslil@posteo.de>2026-08-28 19:37:41 +0100
commitc601baf9004b7defb03caf3d5794c28fc2311f30 (patch)
tree0f38672190a993e82b924bd86a78621be2cb80eb /Makefile
parent9e1bec11e01d56578a9d174e1ff5d689c8437a8a (diff)
Fixed indentation and some bugs, stats programme
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index fb8c548..e3aafec 100644
--- a/Makefile
+++ b/Makefile
@@ -3,19 +3,25 @@ TPDIR=3rd-party
CFLAGS=-g -Wall -Wextra -std=c99 -D_DEFAULT_SOURCE -I$(IDIR) -I$(TPDIR)
LIBS=
-SRCS=$(wildcard src/*.c) $(wildcard include/*.c) $(wildcard 3rd-party/*.c)
+SRCS=$(wildcard include/*.c) $(wildcard 3rd-party/*.c)
OBJS=$(SRCS:.c=.o)
PROG=ctaklm
+STAT=pptdb
SIZE=size
%.o: %.c
cc -c $< -o $@ $(CFLAGS)
-$(PROG): $(OBJS)
- $(CC) $(CFLAGS) $(OBJS) -o $(PROG)
- $(SIZE) $(PROG)
+$(PROG): src/$(PROG).o $(OBJS)
+ $(CC) $(CFLAGS) src/$(PROG).o $(OBJS) -o $(PROG)
+ $(SIZE) $(PROG)
+
+$(STAT): src/$(STAT).o $(OBJS)
+ $(CC) $(CFLAGS) src/$(STAT).o $(OBJS) -o $(STAT)
clean:
rm -f $(PROG)
+ rm -f $(STAT)
+ rm -f src/*.o
rm -f $(OBJS)