diff options
author | thing1 <thing1@seacrossedlovers.xyz> | 2025-06-30 07:54:25 +0100 |
---|---|---|
committer | thing1 <thing1@seacrossedlovers.xyz> | 2025-06-30 07:54:25 +0100 |
commit | bfb5a9ad837e8985aa66acb8a9d6e6790488dcd4 (patch) | |
tree | 04822c32837b15f0497d76f431df2305b5c90e92 /caln/Makefile |
init commit, should remake send
Diffstat (limited to 'caln/Makefile')
-rw-r--r-- | caln/Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/caln/Makefile b/caln/Makefile new file mode 100644 index 0000000..5b7cd37 --- /dev/null +++ b/caln/Makefile @@ -0,0 +1,28 @@ +CFLAGS = -std=c23 -ggdb +LIBS = -lm + +SRC = caln.c mkevent.c +OBJ = $(SRC:.c=.o) + +all: caln + +.c.o: + cc -c ${CFLAGS} $< + +caln: caln.o mkevent.o + cc caln.o -o caln ${CFLAGS} ${LIBS} + cc mkevent.o -o mkevent ${CFLAGS} ${LIBS} + +install: caln + cp caln mkevent addevent delevent sortevents agenda /usr/local/bin/ + +uninstall: + rm /usr/local/bin/caln + rm /usr/local/bin/mkevent + rm /usr/local/bin/addevent + rm /usr/local/bin/delevent + rm /usr/local/bin/sortevents + rm /usr/local/bin/agenda + +clean: + rm -rf *.o caln mkevent |