| 1 | ################################################################################ |
|---|
| 2 | # Makefile for DSTHAL Library # |
|---|
| 3 | # # |
|---|
| 4 | # Copyright (c) 2004-2006 Digital Stream Technology Inc. All rights reserved. # |
|---|
| 5 | ################################################################################ |
|---|
| 6 | |
|---|
| 7 | PDRIVERBASE = $(BASEPRJDIR)/pdrivers |
|---|
| 8 | |
|---|
| 9 | DEFINES += $(GLOBAL_DEFINES) __USE_LARGEFILE64 |
|---|
| 10 | #EXTRA_CFLAGS = -Werror |
|---|
| 11 | |
|---|
| 12 | ################################################################################ |
|---|
| 13 | # Includes directories |
|---|
| 14 | ################################################################################ |
|---|
| 15 | DRIVER_INCLUDES := $(PDRIVERBASE) \ |
|---|
| 16 | $(PDRIVERBASE)/lib/libdvbpsi/obj/include \ |
|---|
| 17 | $(PDRIVERBASE)/lib/libmpeg2-0.5.1/include \ |
|---|
| 18 | /usr/local/include/mpeg2dec |
|---|
| 19 | |
|---|
| 20 | |
|---|
| 21 | |
|---|
| 22 | EXTRA_INCLUDE_DIR = $(DSTHALBASE)/include \ |
|---|
| 23 | $(DSTHALPLATFORMBASE) \ |
|---|
| 24 | $(BASEPRJDIR)/devices/includes \ |
|---|
| 25 | $(BASEPRJDIR)/pdrivers \ |
|---|
| 26 | /usr/local/include/SDL \ |
|---|
| 27 | $(DRIVER_INCLUDES) |
|---|
| 28 | |
|---|
| 29 | ################################################################################ |
|---|
| 30 | # Library Names |
|---|
| 31 | ################################################################################ |
|---|
| 32 | LIBS = |
|---|
| 33 | SHARED_LD_LIBS = $(addprefix -l, $(LIBS)) |
|---|
| 34 | |
|---|
| 35 | ################################################################################ |
|---|
| 36 | # Library Name and Type |
|---|
| 37 | # "shared" to generate shared (or dynamic) library. |
|---|
| 38 | # "static" to generate static (or achieve) library. |
|---|
| 39 | ################################################################################ |
|---|
| 40 | LIBNAME = pdriver |
|---|
| 41 | LIBTYPE = shared |
|---|
| 42 | #LIBTYPE = static |
|---|
| 43 | |
|---|
| 44 | ################################################################################ |
|---|
| 45 | # Output Directories |
|---|
| 46 | ################################################################################ |
|---|
| 47 | BUILD_OBJS_DIR := $(PDRIVERBASE)/debug |
|---|
| 48 | |
|---|
| 49 | ################################################################################ |
|---|
| 50 | # Source Files |
|---|
| 51 | ################################################################################ |
|---|
| 52 | SOURCEFILES = $(PDRIVERBASE)/pd_dmx.c \ |
|---|
| 53 | $(PDRIVERBASE)/block.c \ |
|---|
| 54 | $(PDRIVERBASE)/mpeg2dec.c \ |
|---|
| 55 | $(PDRIVERBASE)/video_out_sdl.c |
|---|
| 56 | |
|---|
| 57 | #NOLINKSUBDIRS = $(PDRIVERBASE)/lib |
|---|
| 58 | |
|---|
| 59 | include $(BASEMAKEDIR)/rules.mak |
|---|