Claudio Ciccani | fe94d0b | 2006-05-31 17:05:11 +0000 | [diff] [blame] | 1 | # progs/directfb/Makefile |
| 2 | |
| 3 | TOP = ../.. |
| 4 | include $(TOP)/configs/current |
| 5 | |
| 6 | |
| 7 | INCDIR = $(TOP)/include -I$(TOP)/progs |
| 8 | |
Brian Paul | 883f989 | 2006-07-13 02:50:27 +0000 | [diff] [blame] | 9 | LIB_DEP = $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME) |
Claudio Ciccani | fe94d0b | 2006-05-31 17:05:11 +0000 | [diff] [blame] | 10 | |
| 11 | CFLAGS += $(shell pkg-config --cflags directfb) |
| 12 | APP_LIB_DEPS += $(shell pkg-config --libs directfb) |
| 13 | |
Dan Nicholson | c05aa5e | 2007-10-29 09:03:01 -0600 | [diff] [blame] | 14 | LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS) |
| 15 | |
Claudio Ciccani | fe94d0b | 2006-05-31 17:05:11 +0000 | [diff] [blame] | 16 | PROGS = 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 Nicholson | c05aa5e | 2007-10-29 09:03:01 -0600 | [diff] [blame] | 27 | $(CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@ |
Claudio Ciccani | fe94d0b | 2006-05-31 17:05:11 +0000 | [diff] [blame] | 28 | |
| 29 | |
| 30 | ##### TARGETS ##### |
| 31 | |
| 32 | default: $(PROGS) |
| 33 | |
| 34 | |
| 35 | clean: |
| 36 | -rm -f $(PROGS) |
| 37 | -rm -f *.o *~ |
| 38 | |