blob: 267dca758f7a8d66b99968b59d444b7e81652fe5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
PROJECT=notifylist
CC=gcc
CXX=g++
CFLAGS=
LDFLAGS=
SOURCES=$(wildcard *.c)
OBJECTS=$(SOURCES:.c=.o)
INCLUDE=-I./extlib/
all: createextlib $(OBJECTS) $(PROJECT)
$(PROJECT): $(SOURCES) notifylist.c
$(CXX) $(INCLUDE) -c notifylist.c
$(CC) $(OBJECTS) $(CFLAGS) $(LDFLAGS) -o $(PROJECT)
%.o: %.c
@echo $@
@$(CXX) $(CFLAGS) $(INCLUDE) -c $< -o $(subst .c,.o,$<)
EXTLIB_SOURCES=$(wildcard extlib/*.c)
EXTLIB_OBJECTS=$(EXTLIB_SOURCES:.c=.o)
OBJECTS+=$(EXTLIB_OBJECTS)
createextlib: $(EXTLIB_OBJECTS)
#asd
clean:
rm -f $(PROJECT) *.o extlib/*.o
|