x86/xen: resume timer irqs early
[linux/fpc-iii.git] / tools / lib / lk / Makefile
blob3dba0a4aebbf5b36ac0f24638eaf557d28b15170
1 include ../../scripts/Makefile.include
3 CC = $(CROSS_COMPILE)gcc
4 AR = $(CROSS_COMPILE)ar
6 # guard against environment variables
7 LIB_H=
8 LIB_OBJS=
10 LIB_H += debugfs.h
12 LIB_OBJS += $(OUTPUT)debugfs.o
14 LIBFILE = liblk.a
16 CFLAGS = -ggdb3 -Wall -Wextra -std=gnu99 -Werror -O6 -D_FORTIFY_SOURCE=2 $(EXTRA_WARNINGS) $(EXTRA_CFLAGS) -fPIC
17 EXTLIBS = -lelf -lpthread -lrt -lm
18 ALL_CFLAGS = $(CFLAGS) $(BASIC_CFLAGS) -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
19 ALL_LDFLAGS = $(LDFLAGS)
21 RM = rm -f
23 $(LIBFILE): $(LIB_OBJS)
24 $(QUIET_AR)$(RM) $@ && $(AR) rcs $(OUTPUT)$@ $(LIB_OBJS)
26 $(LIB_OBJS): $(LIB_H)
28 $(OUTPUT)%.o: %.c
29 $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) $<
30 $(OUTPUT)%.s: %.c
31 $(QUIET_CC)$(CC) -S $(ALL_CFLAGS) $<
32 $(OUTPUT)%.o: %.S
33 $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) $<
35 clean:
36 $(RM) $(LIB_OBJS) $(LIBFILE)
38 .PHONY: clean