comparison Makefile @ 0:12567e0a7670 default tip

initial commit
author Yasuri <yasuri@charliesmp.net>
date Sun, 04 Oct 2026 12:56:43 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:12567e0a7670
1 CXXFLAGS = -g $(shell pkg-config --cflags x11 xft fontconfig)
2 LIBS = $(shell pkg-config --libs x11 xft fontconfig)
3
4 OBJ = main.o calculate.o x11.o drw.o util.o
5
6 calcx11: $(OBJ)
7 $(CXX) -o $@ $(OBJ) $(LIBS)
8
9 main.o: main.cpp config.h
10 $(CXX) $(CXXFLAGS) -c main.cpp
11
12 drw.o: drw.c
13 $(CC) $(CFLAGS) $(shell pkg-config --cflags xft fontconfig) -c drw.c
14
15 util.o: util.c
16 $(CC) $(CFLAGS) -c util.c
17
18 config.h:
19 cp config.def.h config.h
20
21 clean:
22 rm -f calcx11 $(OBJ)