From 7c81cafa41974ce6356aff300bdd25ab452a91e1 Mon Sep 17 00:00:00 2001 From: Ivan Baravy Date: Sun, 24 May 2020 22:34:13 +0000 Subject: [PATCH] c--: Add Makefile.win32 and Makefile.lin32. git-svn-id: svn://kolibrios.org@7980 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/develop/cmm/Makefile.lin32 | 10 ++++++++++ programs/develop/cmm/Makefile.win32 | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 programs/develop/cmm/Makefile.lin32 create mode 100644 programs/develop/cmm/Makefile.win32 diff --git a/programs/develop/cmm/Makefile.lin32 b/programs/develop/cmm/Makefile.lin32 new file mode 100644 index 0000000000..5d16323a71 --- /dev/null +++ b/programs/develop/cmm/Makefile.lin32 @@ -0,0 +1,10 @@ +CPPFLAGS=-m32 -fno-exceptions -std=c++03 -Wno-write-strings -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DO_BINARY=0 -D_UNIX_ +LDFLAGS=-m32 + +OBJS=$(patsubst %.cpp, %.o, $(wildcard *.cpp)) + +c--: $(OBJS) + g++ $(LDFLAGS) $^ -o $@ + +%.o: %.cpp + g++ $(CPPFLAGS) -c $< diff --git a/programs/develop/cmm/Makefile.win32 b/programs/develop/cmm/Makefile.win32 new file mode 100644 index 0000000000..bfc4587115 --- /dev/null +++ b/programs/develop/cmm/Makefile.win32 @@ -0,0 +1,10 @@ +CPPFLAGS=-m32 -fno-exceptions -std=c++03 -Wno-write-strings -D_WIN32_ +LDFLAGS=-m32 + +OBJS=$(patsubst %.cpp, %.o, $(wildcard *.cpp)) + +c--.exe: $(OBJS) + g++ $^ -o $@ + +%.o: %.cpp + g++ $(CPPFLAGS) -c $<