diff options
| author | foswret <foswret@posteo.com> | 2025-12-13 14:57:58 -0600 |
|---|---|---|
| committer | foswret <foswret@posteo.com> | 2025-12-13 14:57:58 -0600 |
| commit | 2b87a7aa16c4de35828af4c996cf7c3ab1b2ad59 (patch) | |
| tree | 7ce5cbfc38e7149e1c21b1149f7532fe38b0f97c | |
| parent | ee01e05bc968a66d4a2581bf2dd28f73584d1057 (diff) | |
| -rw-r--r-- | .gitignore | 5 | ||||
| -rw-r--r-- | Makefile | 12 | ||||
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | output.pdf | bin | 15883 -> 0 bytes | |||
| -rw-r--r-- | src/calp.c | 3 | ||||
| -rw-r--r-- | src/calp.o | bin | 14008 -> 0 bytes | |||
| -rw-r--r-- | src/date.c | 3 | ||||
| -rw-r--r-- | src/date.o | bin | 3112 -> 0 bytes |
8 files changed, 12 insertions, 13 deletions
@@ -1,5 +1,6 @@ +TODO calp -output.pdf calp.o +date.o draw.o -TODO +output.pdf @@ -5,15 +5,15 @@ DIR = src OBJS = $(DIR)/draw.o $(DIR)/calp.o $(DIR)/date.o .PHONY: clean all install -FLAGS = `pkg-config --cflags pangocairo` -LIBS = `pkg-config --libs pangocairo` +TARGET = calp -CFLAGS = -O2 -g -Wall -Werror -Wextra -Winit-self -Wuninitialized -pedantic +CFLAGS = `pkg-config --cflags pangocairo` -O2 -g -Wall -Werror -Wextra -Winit-self -Wuninitialized -pedantic +LFLAGS = `pkg-config --libs pangocairo` -all: calp +all: $(TARGET) -calp: $(OBJS) - $(CC) $(FLAGS) -o calp $(OBJS) $(LIBS) +$(TARGET): $(OBJS) + $(CC) $(CFLAGS) -o $(TARGET) $(OBJS) $(LFLAGS) clean: -rm -f $(OBJS) calp @@ -7,7 +7,7 @@ calp attempts to generate dry and attractive calendars that can be printed. It i - `git` # Install -``` +```bash git clone https://git.foswret.com/calp cd calp make clean install diff --git a/output.pdf b/output.pdf Binary files differdeleted file mode 100644 index d3cecd2..0000000 --- a/output.pdf +++ /dev/null @@ -11,7 +11,7 @@ #include <cairo/cairo-pdf.h> #include <cairo/cairo.h> -//#include <pango/pangocairo.h> +#include <pango/pangocairo.h> /* calp Libraries */ #include "color.h" @@ -21,7 +21,6 @@ // int main (int argc, char *argv[]) { int main (void) { // Dimension initialization - //PangoLayout *layout; int rows = 6; // Number of weeks in a month int columns = 7; // Number of days in a week int months_in_year = 12; diff --git a/src/calp.o b/src/calp.o Binary files differdeleted file mode 100644 index 7a15239..0000000 --- a/src/calp.o +++ /dev/null @@ -1,4 +1,3 @@ -int isleap(int year) -{ +int isleap(int year) { return (year % 4 == 0 && year % 100 != 0) || (year % 400 == 0); } diff --git a/src/date.o b/src/date.o Binary files differdeleted file mode 100644 index bc27b4b..0000000 --- a/src/date.o +++ /dev/null |
