build pmake

This commit is contained in:
Nishi 2026-05-15 01:41:34 +09:00
commit 39a6f5854a

View file

@ -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