aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2022-10-28 00:48:14 +0100
committerubq323 <ubq323@ubq323.website>2022-10-28 00:49:31 +0100
commit7a17c3a4ea869a04041ff2568fd02ec676ab8dff (patch)
treea2ff40bfcae165d294344adcb941d03b535b7f90 /Makefile
parent705db03ebffa24b993f72ca2694ba0982fa80bde (diff)
large refactor continues
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 14 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index df7073c..cb02b50 100644
--- a/Makefile
+++ b/Makefile
@@ -1,21 +1,27 @@
.POSIX:
-.SUFFIXES:
+.SUFFIXES: .c .o
CFLAGS=-Wall
CC=cc
debug=-g -DDEBUG -DLOCAL
-fs=thing.c
-all: thing
+OBJS=bee.o irc.o util.o
-thing: $(fs)
- $(CC) $(CFLAGS) -o thing $(fs)
+all: apiobot
+apiobot: $(OBJS)
+ $(CC) $(CFLAGS) -o apiobot $(OBJS)
debug:
- $(CC) $(CFLAGS) $(debug) -o thing $(fs)
+ $(CC) $(CFLAGS) $(debug) -o apiobot $(OBJS)
+
+.c.o:
+ $(CC) -c $< $(CFLAGS) -o $@
run: all
- ./thing
+ ./apiobot
dr: debug
- ./thing
+ ./apiobot
+
+clean:
+ rm *.o apiobot