aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl/apps/Makefile
blob: c80fcb9d974c7d4363411ec71a3eb98efda74b63 (plain)
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
# src/glsl/apps/Makefile

TOP = ../../..

include $(TOP)/configs/current

LIBS = \
	$(TOP)/src/glsl/pp/libglslpp.a \
	$(TOP)/src/glsl/cl/libglslcl.a

SOURCES = \
	compile.c \
	process.c \
	purify.c \
	tokenise.c \
	version.c

APPS = $(SOURCES:%.c=%)

INCLUDES = -I.


##### RULES #####

.SUFFIXES:
.SUFFIXES: .c

.c:
	$(APP_CC) $(INCLUDES) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@

.c.o:
	$(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@


##### TARGETS #####

default: $(APPS)

clean:
	-rm -f $(APPS)
	-rm -f *.o