diff options
| author | tslil <tslil@posteo.de> | 2021-01-04 00:12:33 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-08-28 19:37:41 +0100 |
| commit | c601baf9004b7defb03caf3d5794c28fc2311f30 (patch) | |
| tree | 0f38672190a993e82b924bd86a78621be2cb80eb /Makefile | |
| parent | 9e1bec11e01d56578a9d174e1ff5d689c8437a8a (diff) | |
Fixed indentation and some bugs, stats programme
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -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) |
