summaryrefslogtreecommitdiff
path: root/TC/unit/Makefile
blob: 8474034b642ef9141f3fb76514322b603cc473e4 (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
CC ?= gcc

TARGETS = utc_SystemFW_pm_change_state_func	\
	  utc_SystemFW_pm_lock_state_func	\
	  utc_SystemFW_pm_unlock_state_func	\

PKGS = pmapi

LDFLAGS = `pkg-config --libs $(PKGS)`
LDFLAGS += $(TET_ROOT)/lib/tet3/tcm_s.o
LDFLAGS += -L$(TET_ROOT)/lib/tet3 -ltcm_s
LDFLAGS += -L$(TET_ROOT)/lib/tet3 -lapi_s

CFLAGS = -I. `pkg-config --cflags $(PKGS)`
CFLAGS += -I$(TET_ROOT)/inc/tet3
CFLAGS += -Wall

all: $(TARGETS)

$(TARGETS): %: %.c
	$(CC) -o $@ $< $(CFLAGS) $(LDFLAGS)

clean:
	rm -f $(TARGETS)