build pmake
This commit is contained in:
parent
8ce4ae0c1c
commit
39a6f5854a
1 changed files with 27 additions and 11 deletions
38
GNUmakefile
38
GNUmakefile
|
|
@ -1,25 +1,30 @@
|
||||||
TARGET =
|
IS_ =
|
||||||
|
|
||||||
ifeq ($(TARGET),)
|
ifeq ($(IS_),)
|
||||||
TARGET = $(shell uname -s)
|
IS_ = $(shell uname -s)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
### Platforms
|
### Platforms
|
||||||
ifeq ($(TARGET),Linux)
|
ifeq ($(IS_),Linux)
|
||||||
UNIX = 1
|
IS_ = 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(TARGET),NetBSD)
|
ifeq ($(IS_),NetBSD)
|
||||||
UNIX = 1
|
IS_ = 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(TARGET),Windows)
|
ifeq ($(IS_),Windows)
|
||||||
MINGW = 1
|
MINGW = 1
|
||||||
WINDOWS = 1
|
IS_ = 1
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(IS_),Watcom)
|
||||||
|
IS_ = 1
|
||||||
|
IS_ = 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
### Stuff
|
### Stuff
|
||||||
ifeq ($(UNIX),1)
|
ifeq ($(IS_),1)
|
||||||
CC = gcc
|
CC = gcc
|
||||||
CFLAGS = -c
|
CFLAGS = -c
|
||||||
LDFLAGS =
|
LDFLAGS =
|
||||||
|
|
@ -28,10 +33,21 @@ ifeq ($(UNIX),1)
|
||||||
EXE =
|
EXE =
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(WINDOWS),1)
|
ifeq ($(IS_),1)
|
||||||
EXE = .exe
|
EXE = .exe
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(IS_),1)
|
||||||
|
CC = owcc
|
||||||
|
CFLAGS = -c
|
||||||
|
LDFLAGS =
|
||||||
|
LIBS =
|
||||||
|
|
||||||
|
ifeq ($(IS_),1)
|
||||||
|
CC += -bnt
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(MINGW),1)
|
ifeq ($(MINGW),1)
|
||||||
CC = gcc
|
CC = gcc
|
||||||
CFLAGS = -c
|
CFLAGS = -c
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue