File: Makefile

package info (click to toggle)
geekcode 1.7.3-5
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 308 kB
  • sloc: ansic: 2,940; makefile: 40
file content (43 lines) | stat: -rw-r--r-- 1,061 bytes parent folder | download | duplicates (7)
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
38
39
40
41
42
43
CFLAGS=-O3 -s
TARGET=geekcode
CC=gcc

SRCFILES = gc_appearance.c    \
           gc_computers.c     \
           gc_entertainment.c \
           gc_lifestyle.c     \
           gc_politics.c      \
           gc_type.c          \
           gc_consoleio.c     \
           gc_translate.c     \
           geekcode.c

LIBFILES = gc_appearance.o    \
           gc_computers.o     \
           gc_entertainment.o \
           gc_lifestyle.o     \
           gc_politics.o      \
           gc_type.o          \
           gc_consoleio.o     \
           gc_translate.o     \
           geekcode.o

all: ${TARGET}

clean:
	rm -f ${TARGET} ${LIBFILES}

geekcode:
	${CC} ${CFLAGS} -c gc_appearance.c
	${CC} ${CFLAGS} -c gc_computers.c
	${CC} ${CFLAGS} -c gc_entertainment.c
	${CC} ${CFLAGS} -c gc_lifestyle.c
	${CC} ${CFLAGS} -c gc_politics.c
	${CC} ${CFLAGS} -c gc_type.c
	${CC} ${CFLAGS} -c gc_consoleio.c
	${CC} ${CFLAGS} -c gc_translate.c
	${CC} ${CFLAGS} -c geekcode.c
	${CC} ${CFLAGS} -o ${TARGET} ${LIBFILES}

install:
	install -m 755 geekcode /usr/local/bin