More GNUmakefile cleanups.
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>
This commit is contained in:
parent
fb64c2e924
commit
264b5688b2
@ -1,22 +1,22 @@
|
|||||||
CC=cc
|
CC=cc
|
||||||
|
|
||||||
DEPS = main.c
|
DEPS = main.c
|
||||||
|
|
||||||
OBJ = main.o
|
OBJ = main.o
|
||||||
%.o: %.c $(DEPS)
|
%.o: %.c $(DEPS)
|
||||||
$(CC) -c -o $@ $< $(CFLAGS)
|
$(CC) -c -o $@ $< $(CFLAGS)
|
||||||
|
|
||||||
JSMN = ../../deps/jsmn/libjsmn.a
|
JSMN = ../../deps/jsmn/libjsmn.a
|
||||||
|
|
||||||
all: magichat
|
all: magichat
|
||||||
|
|
||||||
$(JSMN):
|
$(JSMN):
|
||||||
cd ../../deps/jsmn/ && $(MAKE)
|
cd ../../deps/jsmn/ && $(MAKE)
|
||||||
|
|
||||||
magichat: $(OBJ) $(JSMN)
|
magichat: $(OBJ) $(JSMN)
|
||||||
$(CC) -o magichat -o $@ $^ $(CFLAGS) $(LDFLAGS)
|
$(CC) -o magichat -o $@ $^ $(CFLAGS) $(LDFLAGS)
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(OBJ) magichat
|
rm -f $(OBJ) magichat
|
||||||
|
@ -1,22 +1,22 @@
|
|||||||
CC=cc
|
CC=cc
|
||||||
|
|
||||||
DEPS = main.c
|
DEPS = main.c
|
||||||
|
|
||||||
OBJ = main.o
|
OBJ = main.o
|
||||||
%.o: %.c $(DEPS)
|
%.o: %.c $(DEPS)
|
||||||
$(CC) -c -o $@ $< $(CFLAGS)
|
$(CC) -c -o $@ $< $(CFLAGS)
|
||||||
|
|
||||||
JSMN = ../../deps/jsmn/libjsmn.a
|
JSMN = ../../deps/jsmn/libjsmn.a
|
||||||
|
|
||||||
all: magichat
|
all: magichat
|
||||||
|
|
||||||
$(JSMN):
|
$(JSMN):
|
||||||
cd ../../deps/jsmn/ && $(MAKE)
|
cd ../../deps/jsmn/ && $(MAKE)
|
||||||
|
|
||||||
magichat: $(OBJ) $(JSMN)
|
magichat: $(OBJ) $(JSMN)
|
||||||
$(CC) -o magichat -o $@ $^ $(CFLAGS) $(LDFLAGS) -lsocket
|
$(CC) -o magichat -o $@ $^ $(CFLAGS) $(LDFLAGS) -lsocket
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(OBJ) magichat
|
rm -f $(OBJ) magichat
|
||||||
|
Reference in New Issue
Block a user