2022-02-08 18:16:25 +01:00
|
|
|
CPPFLAGS= -m32 -fpack-struct=2 -fno-exceptions -std=c++03 -Wno-write-strings -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DO_BINARY=0 -D_UNIX_
|
2022-04-21 22:05:08 +02:00
|
|
|
LDFLAGS= -m32 -static
|
2020-05-25 00:34:13 +02:00
|
|
|
|
|
|
|
OBJS=$(patsubst %.cpp, %.o, $(wildcard *.cpp))
|
|
|
|
|
2022-02-08 18:16:25 +01:00
|
|
|
TARGET = c--
|
|
|
|
|
|
|
|
$(TARGET): $(OBJS)
|
|
|
|
$(CC) $(LDFLAGS) $^ -o $@
|
2020-05-25 00:34:13 +02:00
|
|
|
|
|
|
|
%.o: %.cpp
|
2022-02-08 18:16:25 +01:00
|
|
|
$(CC) $(CPPFLAGS) -c $<
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(OBJS) $(TARGET)
|
2022-04-21 22:05:08 +02:00
|
|
|
|
|
|
|
install: $(TARGET)
|
|
|
|
cp c-- ../../cmm/c--/c--.elf
|