summaryrefslogtreecommitdiffstats
path: root/progs/egl/eglut/Makefile
blob: 364f5b0be3d5c48cd4e40c6d12789b3970066e16 (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
# progs/egl/eglut

TOP = ../../..
include $(TOP)/configs/current

INCLUDES = \
	-I$(TOP)/include \
	$(X11_CFLAGS)

SOURCES = \
	eglut.c \
	eglut_screen.c \
	eglut_x11.c

EGLUT_X11_OBJECTS = eglut.o eglut_x11.o
EGLUT_SCREEN_OBJECTS = eglut.o eglut_screen.o

default: depend libeglut-x11.a libeglut-screen.a

libeglut-x11.a: $(EGLUT_X11_OBJECTS)
	$(MKLIB) -o eglut-x11 -static $(EGLUT_X11_OBJECTS)

libeglut-screen.a: $(EGLUT_SCREEN_OBJECTS)
	$(MKLIB) -o eglut-screen -static $(EGLUT_SCREEN_OBJECTS)

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

depend: $(SOURCES)
	@rm -f depend
	@touch depend
	@$(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(SOURCES) \
		> /dev/null 2>/dev/null

clean:
	rm -f *.o *.a
	rm -f depend depend.bak

sinclude depend