mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-01 08:05:07 -04:00
26 lines
444 B
Makefile
26 lines
444 B
Makefile
|
CFLAGS = -Wall -O2 -g
|
||
|
UC_OBJ = uc_f3d.o uc_f3db.o uc_f3dex.o uc_f3dexb.o uc_f3dex2.o
|
||
|
OBJ = gfxd.o $(UC_OBJ)
|
||
|
LIB = libgfxd.a
|
||
|
|
||
|
CPPFLAGS-$(MT) += -DCONFIG_MT
|
||
|
CPPFLAGS += $(CPPFLAGS-y)
|
||
|
|
||
|
.PHONY: all
|
||
|
all: $(LIB)
|
||
|
|
||
|
.PHONY: clean
|
||
|
clean:
|
||
|
rm -f $(OBJ) $(LIB)
|
||
|
|
||
|
.INTERMEDIATE: $(OBJ)
|
||
|
|
||
|
$(OBJ): gbi.h gfxd.h priv.h
|
||
|
$(UC_OBJ): uc.c uc_argfn.c uc_argtbl.c uc_macrofn.c uc_macrotbl.c
|
||
|
|
||
|
$(LIB): $(OBJ)
|
||
|
$(AR) rcs $@ $^
|
||
|
|
||
|
%.o: %.c
|
||
|
$(COMPILE.c) $(OUTPUT_OPTION) $<
|