Artifact 89f5050019fe0b2eb8920faba4296978d76ff7cc8fab80d1d2b098b39c432167:
- File
config.mk
— part of check-in
[fcc5ac8547]
at
2014-05-15 22:13:52
on branch manualheaven
— Add (initial) Makefile and config.mk in suckless style
Based on the config.mk and Makefile from suckless's sic actually. The
config.h is as was produced from the autohell setup. I'm sure it can be
simplified and improved. The config.mk and Makefile probably aren't
far off. (user: base@atomicules.co.uk size: 495) [more...]
0000: 23 20 50 57 6d 61 6e 20 76 65 72 73 69 6f 6e 0a # PWman version.
0010: 56 45 52 53 49 4f 4e 20 3d 20 30 2e 34 2e 34 0a VERSION = 0.4.4.
0020: 0a 23 20 43 75 73 74 6f 6d 69 7a 65 20 62 65 6c .# Customize bel
0030: 6f 77 20 74 6f 20 66 69 74 20 79 6f 75 72 20 73 ow to fit your s
0040: 79 73 74 65 6d 0a 0a 23 20 70 61 74 68 73 0a 50 ystem..# paths.P
0050: 52 45 46 49 58 20 3d 20 2f 75 73 72 2f 6c 6f 63 REFIX = /usr/loc
0060: 61 6c 0a 4d 41 4e 50 52 45 46 49 58 20 3d 20 24 al.MANPREFIX = $
0070: 7b 50 52 45 46 49 58 7d 2f 73 68 61 72 65 2f 6d {PREFIX}/share/m
0080: 61 6e 0a 0a 23 20 69 6e 63 6c 75 64 65 73 20 61 an..# includes a
0090: 6e 64 20 6c 69 62 73 0a 49 4e 43 53 20 3d 20 2d nd libs.INCS = -
00a0: 49 2e 20 2d 49 2f 75 73 72 2f 69 6e 63 6c 75 64 I. -I/usr/includ
00b0: 65 20 2d 49 2f 75 73 72 2f 70 6b 67 2f 69 6e 63 e -I/usr/pkg/inc
00c0: 6c 75 64 65 20 60 78 6d 6c 32 2d 63 6f 6e 66 69 lude `xml2-confi
00d0: 67 20 2d 2d 63 66 6c 61 67 73 60 20 60 6c 69 62 g --cflags` `lib
00e0: 67 63 72 79 70 74 2d 63 6f 6e 66 69 67 20 2d 2d gcrypt-config --
00f0: 63 66 6c 61 67 73 60 0a 4c 49 42 53 20 3d 20 2d cflags`.LIBS = -
0100: 4c 2f 75 73 72 2f 6c 69 62 20 2d 6c 63 20 2d 6c L/usr/lib -lc -l
0110: 63 75 72 73 65 73 20 60 78 6d 6c 32 2d 63 6f 6e curses `xml2-con
0120: 66 69 67 20 2d 2d 6c 69 62 73 60 20 60 6c 69 62 fig --libs` `lib
0130: 67 63 72 79 70 74 2d 63 6f 6e 66 69 67 20 2d 2d gcrypt-config --
0140: 6c 69 62 73 60 0a 0a 23 20 66 6c 61 67 73 0a 43 libs`..# flags.C
0150: 50 50 46 4c 41 47 53 20 3d 20 2d 44 56 45 52 53 PPFLAGS = -DVERS
0160: 49 4f 4e 3d 5c 22 24 7b 56 45 52 53 49 4f 4e 7d ION=\"${VERSION}
0170: 5c 22 20 2d 44 5f 47 4e 55 5f 53 4f 55 52 43 45 \" -D_GNU_SOURCE
0180: 0a 43 46 4c 41 47 53 20 3d 20 2d 73 74 64 3d 63 .CFLAGS = -std=c
0190: 39 39 20 2d 70 65 64 61 6e 74 69 63 20 2d 57 61 99 -pedantic -Wa
01a0: 6c 6c 20 2d 4f 73 20 24 7b 49 4e 43 53 7d 20 24 ll -Os ${INCS} $
01b0: 7b 43 50 50 46 4c 41 47 53 7d 0a 4c 44 46 4c 41 {CPPFLAGS}.LDFLA
01c0: 47 53 20 3d 20 2d 73 20 24 7b 4c 49 42 53 7d 0a GS = -s ${LIBS}.
01d0: 0a 23 20 63 6f 6d 70 69 6c 65 72 20 61 6e 64 20 .# compiler and
01e0: 6c 69 6e 6b 65 72 0a 43 43 20 3d 20 63 63 0a linker.CC = cc.