187cf02903
With the normalization of magimail's Makefile, we can further simplify this logic. Integrate the WWW logic into GNUmakefile.common. Remove the custom `Makefile.sunos` files: just use a conditional in the Makefile. Signed-off-by: Dan Cross <patchdev@fat-dragon.org>
28 lines
439 B
Makefile
28 lines
439 B
Makefile
CC=cc
|
|
CFLAGS=-I../../deps/odoors/
|
|
DEPS = main.c
|
|
OS = $(shell uname -s)
|
|
ODOORS = ../../deps/odoors/libs-${OS}/libODoors.a
|
|
|
|
ifeq ($(OS), SunOS)
|
|
EXTRA_LIBS = -lsocket
|
|
endif
|
|
|
|
OBJ = main.o
|
|
|
|
all: magiedit
|
|
|
|
${ODOORS}:
|
|
cd ../../deps/odoors && $(MAKE) MAKEFLAGS=
|
|
|
|
%.o: %.c $(DEPS)
|
|
$(CC) -c -o $@ $< $(CFLAGS)
|
|
|
|
magiedit: $(OBJ) $(ODOORS)
|
|
$(CC) -o magiedit -o $@ $^ $(CFLAGS) $(ODOORS) $(EXTRA_LIBS)
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
rm -f $(OBJ) magiedit
|