]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/x86emu/examples/linux_stub/Makefile
Inital import
[l4.git] / l4 / pkg / x86emu / examples / linux_stub / Makefile
1 PKGDIR          ?= ../..
2 L4DIR           ?= $(PKGDIR)/../..
3
4 include $(L4DIR)/mk/Makeconf
5 ifneq ($(SYSTEM),)
6 ifeq ($(GCCVERSION),2.95)
7 TARGET          = x86emu.o
8 else
9 all install::
10         @echo -e $(EMPHSTART)"  ==> X86emu stub module is not built since Linux-2.2 code requires gcc-2.95!"$(EMPHSTOP)
11 endif
12 endif
13 MODE            = l4linux_kern
14 SYSTEMS         = x86-l4f
15
16 SRC_C           = emu.c
17 LIBS            = -lx86emu
18 CPPFLAGS        = -DMODULE -DNO_SYS_HEADERS -fomit-frame-pointer
19 WARNINGS        = -Wall -Wstrict-prototypes
20 LDFLAGS         = -r -nostdlib -nostartfiles
21
22 INSTALLFILE_BIN_LOCAL = $(STRIP) --strip-unneeded $(1) \
23                         -o $(INSTALLDIR_LOCAL)/$(TARGET)
24
25 include $(L4DIR)/mk/prog.mk