-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
30 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
ARCH := $(shell uname -m) | ||
ifneq ($(filter i386 i486 i586 i686, $(ARCH)),) | ||
ARCH := i386 | ||
endif | ||
|
||
ifdef LIBX86EMU_VERSION | ||
VERSION := $(shell echo ${LIBX86EMU_VERSION} > VERSION; cat VERSION) | ||
else | ||
GIT2LOG := $(shell if [ -x ./git2log ] ; then echo ./git2log --update ; else echo true ; fi) | ||
VERSION := $(shell $(GIT2LOG) --version VERSION ; cat VERSION) | ||
endif | ||
GITDEPS := $(shell [ -d .git ] && echo .git/HEAD .git/refs/heads .git/refs/tags) | ||
BRANCH := $(shell [ -d .git ] && git branch | perl -ne 'print $$_ if s/^\*\s*//') | ||
PREFIX := libx86emu-$(VERSION) | ||
|
||
MAJOR_VERSION := $(shell cut -d . -f 1 VERSION) | ||
|
||
CC = gcc | ||
CFLAGS = -g -O2 -fPIC -fvisibility=hidden -fomit-frame-pointer -Wall | ||
LDFLAGS = | ||
|
||
LIBDIR = /usr/lib$(shell ldd /bin/sh | grep -q /lib64/ && echo 64) | ||
LIBX86 = libx86emu | ||
|
||
CFILES = $(wildcard *.c) | ||
OBJS = $(CFILES:.c=.o) | ||
|
||
LIB_NAME = $(LIBX86).so.$(VERSION) | ||
LIB_SONAME = $(LIBX86).so.$(MAJOR_VERSION) |