summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-06-01 21:24:56 +0200
committerOskar <[email protected]>2024-06-01 21:24:56 +0200
commit54b7f4b1d69673182c1358d484b35e86111b66be (patch)
tree5a4ece1af78965237a94e3aa9ec805cfcf5ba3b2 /Makefile
parentb0d494f15524fb8dc037c1fce2cb72c0556bb36e (diff)
client thing, it only sends a message and exits but i learned how the basics like that work now
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 23f7569..e8df2e9 100644
--- a/Makefile
+++ b/Makefile
@@ -6,31 +6,33 @@ TARGETS=helloworld
TARGETS2=binding
TARGETS3=listen
TARGETS4=connecting
-TARGETS5=
+TARGETS5=client
TESTTARGET=helloworld-t
TESTTARGET2=binding-t
TESTTARGET3=listen-t
TESTTARGET4=connecting-t
-TESTTARGET5=
+TESTTARGET5=client-t
SRCS=hello.c
SRCS2=binding.c
SRCS3=listen.c
SRCS4=connecting.c
-SRCS5=
+SRCS5=client.c
all: release
clean:
- rm -f bin/$(TARGETS) bin/$(TARGETS2) bin/$(TARGETS3) bin/$(TARGETS4)
- rm -f test/$(TESTTARGET) test/$(TESTTARGET2) test/$(TESTTARGET3) test/$(TESTTARGET4)
+ rm -f bin/$(TARGETS) bin/$(TARGETS2) bin/$(TARGETS3) bin/$(TARGETS4) bin/$(TARGETS5)
+ rm -f test/$(TESTTARGET) test/$(TESTTARGET2) test/$(TESTTARGET3) test/$(TESTTARGET4) test/$(TESTTARGET5)
tests:
$(CC) $(CFLAGS_TESTBIN) $(SRCS) -o test/$(TESTTARGET)
$(CC) $(CFLAGS_TESTBIN) $(SRCS2) -o test/$(TESTTARGET2)
$(CC) $(CFLAGS_TESTBIN) $(SRCS3) -o test/$(TESTTARGET3)
$(CC) $(CFLAGS_TESTBIN) $(SRCS4) -o test/$(TESTTARGET4)
+ $(CC) $(CFLAGS_TESTBIN) $(SRCS5) -o test/$(TESTTARGET5)
release:
$(CC) $(CFLAGS) $(SRCS) -o bin/$(TARGETS)
$(CC) $(CFLAGS) $(SRCS2) -o bin/$(TARGETS2)
$(CC) $(CFLAGS) $(SRCS3) -o bin/$(TARGETS3)
$(CC) $(CFLAGS) $(SRCS4) -o bin/$(TARGETS4)
+ $(CC) $(CFLAGS) $(SRCS5) -o bin/$(TARGETS5)