blob: ec533e43852a14dbb7afce978d261e0157835dc3 (
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=-g3
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
|