File: Makefile

package info (click to toggle)
xasteroids 5.0-17.1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 104 kB
  • ctags: 106
  • sloc: ansic: 792; makefile: 28; sh: 17
file content (26 lines) | stat: -rw-r--r-- 488 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
#CC = gcc -Wall
CC = cc
CFLAGS = -O
#INCLUDES = -I/usr/local/include
INCLUDES = -I/util/X11/include
#LDFLAGS = -s -L/usr/local/lib
LDFLAGS = -s -L/util/X11/lib
LIBS = -lm -lX11
TARGET = xast.exe
SRCS = xast.c
OBJS = xast.o 
ALL = README xasteroids xast.docs xast.man Makefile $(SRCS) 

all:	$(TARGET)

$(TARGET):	$(OBJS)
	$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)

.c.o:
	$(CC) $(CFLAGS) $(INCLUDES) -c $*.c

clean:
	rm -f $(OBJS) $(TARGET) core

shar:	$(ALL)
	shar -o $(TARGET).shar $(ALL)