1 # src/mapi/glapi/Makefile
4 include $(TOP
)/configs
/current
7 GLAPI_OBJECTS
= $(GLAPI_SOURCES
:.c
=.o
)
8 GLAPI_ASM_OBJECTS
= $(GLAPI_ASM_SOURCES
:.S
=.o
)
15 default
: depend libglapi.a
17 libglapi.a
: $(GLAPI_OBJECTS
) $(GLAPI_ASM_OBJECTS
)
18 @
$(MKLIB
) -o glapi
-static
$(GLAPI_OBJECTS
) $(GLAPI_ASM_OBJECTS
)
20 $(GLAPI_OBJECTS
): %.o
: %.c
21 $(CC
) -c
$(INCLUDE_DIRS
) $(CFLAGS
) $< -o
$@
23 $(GLAPI_ASM_OBJECTS
): %.o
: %.S
24 $(CC
) -c
$(INCLUDE_DIRS
) $(CFLAGS
) $< -o
$@
29 -rm -f
$(GLAPI_OBJECTS
) $(GLAPI_ASM_OBJECTS
)
30 -rm -f depend depend.bak libglapi.a
32 depend
: $(GLAPI_SOURCES
)
33 @ echo
"running $(MKDEP)"
35 @
$(MKDEP
) $(MKDEP_OPTIONS
) $(DEFINES
) $(INCLUDE_DIRS
) $(GLAPI_SOURCES
) \
36 > /dev
/null
2>/dev
/null