-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.mk
37 lines (35 loc) · 902 Bytes
/
config.mk
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
37
# Includable for c1-like makefiles.
PROGNAME= $(notdir $(patsubst %/,%,$(dir $(abspath $(firstword $(MAKEFILE_LIST)) ))))
VERSION = 0.41
# Artifacts.
TGT = $(PROGNAME)$(EXEEXT)
SRC = $(wildcard *.c) $(ADDSRC)
HDR = $(wildcard *.h) $(ADDHDR)
ADDSRC =
ADDHDR =
OBJ = $(SRC:.c=.o)
# Tarball.
TARDIR = $(TGT)-$(VERSION)
TARARC = $(TARDIR)$(TAREXT)
TARGZARC = $(TARARC)$(GZEXT)
# Manual.
MANSTDSECT = 1
MANUAL = $(TGT).$(MANSECT)
# Directories.
# Includes.
INCFLAGS = -I/usr/X11R6/include
# Dynamic/static libraries.
LIBFLAGS = -L$(PREFIX)/lib -lX11
# CPPreprocessor.
CPPFLAGS = -DVERSION=\"$(VERSION)\"
# Warnings.
WRNFLAGS =
# Optimiziation flags.
OPTFLAGS = -O3
# Compilation Flags.
DBGFLAGS = -g $(INCFLAGS) -O0 -Wall $(DEFFLAGS) -DDBG
CFLAGS = $(INCFLAGS) $(OPTFLAGS) $(WRNFLAGS) $(DEFFLAGS)
LDFLAGS = $(LIBFLAGS)
# Compiler and linker.
CC = tcc
LD = $(CC)