Cross-compile friendly Makefiles

This commit is contained in:
Alexander Ryzhov
2018-09-13 10:12:58 +03:00
parent 48d778244c
commit ab5a5a0298
2 changed files with 6 additions and 6 deletions

View File

@@ -1,12 +1,12 @@
CC = gcc
CFLAGS = -s
CC ?= gcc
CFLAGS += -s
LIBS =
SRC_FILES = *.c
all: tpws
tpws: $(SRC_FILES)
$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LIBS)
clean:
rm -f tpws *.o