blob: 93c2a7df14bd2e1982936e67e831bca4ac529538 [file] [log] [blame]
Claudio Ciccanife94d0b2006-05-31 17:05:11 +00001# progs/directfb/Makefile
2
3TOP = ../..
4include $(TOP)/configs/current
5
6
7INCDIR = $(TOP)/include -I$(TOP)/progs
8
Brian Paul883f9892006-07-13 02:50:27 +00009LIB_DEP = $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME)
Claudio Ciccanife94d0b2006-05-31 17:05:11 +000010
11CFLAGS += $(shell pkg-config --cflags directfb)
12APP_LIB_DEPS += $(shell pkg-config --libs directfb)
13
Dan Nicholsonc05aa5e2007-10-29 09:03:01 -060014LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
15
Claudio Ciccanife94d0b2006-05-31 17:05:11 +000016PROGS = df_gears \
17 df_reflect \
18 df_morph3d \
19 multi_window
20
21##### RULES #####
22
23.SUFFIXES:
24.SUFFIXES: .c
25
26.c: $(LIB_DEP)
Dan Nicholsonc05aa5e2007-10-29 09:03:01 -060027 $(CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
Claudio Ciccanife94d0b2006-05-31 17:05:11 +000028
29
30##### TARGETS #####
31
32default: $(PROGS)
33
34
35clean:
36 -rm -f $(PROGS)
37 -rm -f *.o *~
38