File: Makefile

package info (click to toggle)
ttygif 1.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 128 kB
  • sloc: ansic: 546; makefile: 30
file content (27 lines) | stat: -rw-r--r-- 533 bytes parent folder | download
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
CC = gcc
VERSION = '"1.4.0"'
CFLAGS += -O2 -Wall -DVERSION=$(VERSION)
PREFIX ?= /usr/local

UNAME := $(shell uname)
ifeq ($(UNAME), Darwin)
	CFLAGS += -DOS_DARWIN
endif
ifeq ($(UNAME), Linux)
	CFLAGS += -DOS_LINUX
endif

all: ttygif

ttygif: ttygif.o io.o string_builder.o utils.o
	$(CC) $(CFLAGS) -o ttygif ttygif.o io.o string_builder.o utils.o

install: ttygif
	install -d $(PREFIX)/bin
	install -m755 ttygif $(PREFIX)/bin/ttygif

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

clean:
	rm -f *.o ttygif ttyrecord *~