blob: a397522f28cde2023b1484b2e8eeb704ef75bcbd (
plain)
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
|
TARGET = procfs
OBJS = procfs.o netfs.o procfs_dir.o \
process.o proclist.o rootdir.o dircat.o main.o
LIBS = -lnetfs -lps
CC = gcc
CFLAGS = -Wall -g
CPPFLAGS =
LDFLAGS =
ifdef PROFILE
CFLAGS= -g -pg
CPPFLAGS= -DPROFILE
LDFLAGS= -static
LIBS= -lnetfs -lfshelp -liohelp -lps -lports -lthreads -lihash -lshouldbeinlibc
endif
CPPFLAGS += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
all: $(TARGET)
$(TARGET): $(OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
clean:
$(RM) $(TARGET) $(OBJS)
|