diff options
Diffstat (limited to 'ecc/Rules.mk')
-rw-r--r-- | ecc/Rules.mk | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ecc/Rules.mk b/ecc/Rules.mk new file mode 100644 index 0000000..a2e6caf --- /dev/null +++ b/ecc/Rules.mk @@ -0,0 +1,20 @@ +CFLAGS += -m32 -D_GNU_SOURCE -std=gnu99 -D_FILE_OFFSET_BITS=64 -I$(DEPTH)/.. -iquote.. +LDFLAGS += -L. -L$(DEPTH)/../clib/x86 -m32 + +OBJS=main.o + +TARGETS=ecc + +vpath %.c ../src +vpath %.h .. + +all: $(TARGETS) + +ecc: main.o $(DEPTH)/../clib/x86/libclib.a + $(CC) $(LDFLAGS) -o $@ $^ -lpthread + +install: $(TARGETS) + $(INSTALL) ecc $(ECC_INSTALL)/bin + +clean distclean: + $(RM) -f $(TARGETS) $(OBJS) |