aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 8453234e730efde03d5ad55be67afb247368bdd8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#   cfetch is my try to implement a neofetch/fastfetch/commiefetch clone in C.
#   Copyright (C) 2026  Anser <https://codeberg.org/Anser/cfetch>
#
#   This program is free software: you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
#   the Free Software Foundation, either version 3 of the License, or
#   (at your option) any later version.
#

CC = gcc
CFLAGS = -Wall -Wextra -Werror
PREFIX ?= /usr/local

SRC = src/cfetch.c \
      src/modules/os/os.c \
      src/modules/memory/memory.c \
      src/modules/cpu/cpu.c \
      src/logo/logo.c \
      src/modules/utils/utils.c

all: cfetch

cfetch:
	$(CC) $(CFLAGS) $(SRC) -o cfetch -g
	@echo "Finished install of cfetch!"

install: cfetch
	mkdir -p $(PREFIX)/bin
	cp cfetch $(PREFIX)/bin/cfetch

uninstall:
	rm -f cfetch
	rm -f $(PREFIX)/bin/cfetch

clean:
	rm -f cfetch