File: Makefile

package info (click to toggle)
tama 1.0-2
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 120 kB
  • ctags: 72
  • sloc: ansic: 1,044; makefile: 55; sh: 46
file content (42 lines) | stat: -rw-r--r-- 703 bytes parent folder | download | duplicates (3)
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
# Makefile for Net Tamagotchi
#
# ff@lagged.net

CC = gcc
LD = $(CC)

# this should work fine
CFLAGS = -ansi -pedantic -Wall -D_GNU_SOURCE

OBJS = main.o exec.o api.o status.o list.o

# replace this with your daemon directory
DIR = $(DESTDIR)/usr/sbin

PROG = tama

all: $(PROG)

install: tama
	cp -f $(PROG) $(DIR)/tamad

clean:
	rm -f $(PROG) *.o *.core core *.bak *~

tama: main.o exec.o api.o status.o list.o
	$(LD) $(LDFLAGS) -o $(PROG) $(OBJS)

main.o: main.c tama.h
	$(CC) $(CFLAGS) -c main.c

exec.o: exec.c tama.h
	$(CC) $(CFLAGS) -c exec.c

api.o: api.c tama.h
	$(CC) $(CFLAGS) -c api.c

status.o: status.c tama.h
	$(CC) $(CFLAGS) -c status.c

list.o: list.c tama.h
	$(CC) $(CFLAGS) -c list.c